All Exams Test series for 1 year @ ₹349 only
Question

In a farmer's house, there are Chickens and goats. The total number of their heads is 42 and the total number of their legs is 138. Find the number of Chickens.

This question was previously asked in
RRB NTPC 2019 CBT 1 Question Paper (8-Mar-2021) (Shift 2)
The correct answer is
15

Solving the Chickens and Goats Riddle

This problem involves setting up and solving a system of linear equations based on the given information about heads and legs.

Setting Up the Equations

Let $C$ represent the number of chickens and $G$ represent the number of goats.

  • Heads Equation: Each animal has one head. $ C + G = 42 $
  • Legs Equation: Chickens have 2 legs and goats have 4 legs. $ 2C + 4G = 138 $

Solving for the Number of Chickens ($C$)

We can use the substitution method. First, express $G$ in terms of $C$ using the heads equation:

From $C + G = 42$, we get $G = 42 - C$.

Now, substitute this expression for $G$ into the legs equation:

$ 2C + 4(42 - C) = 138 $

Simplify and solve for $C$:

  1. Distribute the 4: $2C + 168 - 4C = 138$
  2. Combine the $C$ terms: $168 - 2C = 138$
  3. Subtract 168 from both sides: $-2C = 138 - 168$
  4. Calculate the difference: $-2C = -30$
  5. Divide by -2: $C = \frac{-30}{-2}$
  6. Result: $C = 15$

Therefore, there are 15 chickens.

Verification (Optional)

If $C = 15$, then $G = 42 - 15 = 27$.

Check the total legs: $(2 \times 15) + (4 \times 27) = 30 + 108 = 138$. The calculation is correct.

Was this answer helpful?

Similar Questions

  1. What will come in the place of the question mark (?) in the following equation, if '+' and '−' are interchanged and '×' and '÷' are interchanged?
    65 × 5 − 19 ÷ 3 + 25 = ?
  2. What will come in place of the question mark (?) in the following equation if '×' and '+' are interchanged and '−' and '÷' are interchanged?
    32 ÷ 2 × 72 − 9 + 5 = ?
  3. If 'A' stands for '÷', 'B' stands for '×', 'C' stands for '+' and 'D' stands for '−', what will come in place of the question mark (?) in the following equation?

    7 B 5 D 48 A 4 C 13 = ?
  4. What will come in the place of the question mark (?) in the following equation, if ‘+’ and ‘÷’ are interchanged, and ‘−’ and ‘×’ are interchanged?

    6 + 3 ÷ 48 − 4 × 25 = ?
  5. While solving a mathematical problem, Atul squared the initial number and then subtracted $15$ from it. Pratul first subtracted $15$ from the initial number and then squared the difference. If both obtained the same answer, what was the initial number?
  6. Which two signs are to be interchanged to make the given equation correct?

    $15 - 3 \div 40 + 5 \times 30 = 23$
  7. What will come in the place of the question mark (?) in the following equation, if ‘+’ and ‘−’ are interchanged and ‘×’ and ‘÷’ are interchanged?

    25 − 9 × 3 + 4 ÷ 2 = ?
  8. What will come in place of the question mark (?) in the following equation, if ‘+’ and ‘−’ are interchanged and ‘×’ and ‘÷’ are interchanged?

    12 ÷ 6 + 28 × 4 − 11 = ?
  9. What will come in place of the question mark (?) in the following equation, if ‘+’ and ‘×’ are interchanged and ‘−’ and ‘÷’ are interchanged?
    $8 + 5 \div 40 - 4 \times 17 = ?$
  10. What will come in the place of the question mark (?) in the following equation, if ‘+’ and ‘×’ are interchanged, and ‘−’ and ‘÷’ are interchanged?

    2 + 8 ÷ 84 − 7 × 27 = ?

Important Questions from Mathematical Operations

  1. What will come in the place of ‘?’ in the following equation if ‘+’ and ‘−’ are interchanged and ‘×’ and ‘÷’ are interchanged?
    18 ÷ 9 + 24 × 3 − 16 = ?

  2. If ‘A’ stands for ‘÷’, ‘B’ stands for ‘×’, ‘C’ stands for ‘+’, and ‘D’ stands for ‘−’, what will come in place of the question mark (?) in the following equation?
    88 B 3 D 12 A 4 C 6 = ?

  3. Select the set in which the numbers are related in the same way as are the numbers of the given sets.
    (NOTE: Operations should be performed on whole numbers without breaking down the numbers into their constituent digits. E.g., 13 – Operations on 13 such as adding/subtracting/multiplying, etc., to 13 can be performed. Breaking down 13 into 1 and 3 and then performing mathematical operations on 1 and 3 is not allowed.)
    Given sets:
    (9, 21, 193)
    (12, 15, 184)

  4. What will come in the place of the question mark (?) in the following equation, if ‘÷’ and ‘+’ are interchanged and ‘−’ and ‘×’ are interchanged?
    44 ÷ 78 + 6 − 3 × 19 = ?

  5. Two sets of numbers are given below. In each set of numbers, certain mathematical operation(s) on the first number result(s) in the second number. Similarly, certain mathematical operation(s) on the second number result(s) in the third number and so on. Which of the given options follows the same set of operations as in the given sets?

    (NOTE: Operations should be performed on the whole numbers, without breaking down the numbers into their constituent digits. E.g. 13 – Operations on 13 such as adding/subtracting/multiplying to 13 can be performed. Breaking down 13 into 1 and 3 and then performing mathematical operations on 1 and 3 is not allowed.)

Need Expert Advice?
Upcoming Exams
RRB ALP
July 28, 2026
RRB Group D
August 03, 2026
Test Series
RRB NTPC img
Railways
RRB NTPC Under Graduate 2026 New Mock Test Series
1459 Tests 2 Tests Free
215 Attempts
4.3(512)
English, Hindi, Telugu +7 More

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App