Dodo initially had 56 green pencils and 28 red pencils.
Explanation:
Step 1:
Assume the number of green pencils is x and the number of red pencils is y. From the question, we have
, take this as equation 1,
, take this as equation 2.
Step 2:
If we multiply equation 1 with 2 and subtract it from equation 2, we cancel out the x variable and can solve for the value of y.
, take this as equation 3.
By subtracting equation 2 from 3, we get
Step 3:
Substituting this value of y in any of the previous equations we will get x's value.
Here this value of y i.e y = 28 is substituted in equation 1.
So we have x = 56 and y = 28.