Instead of doing your problem for you, I'll do this one instead, which is
done EXACTLY step-by-step the same way:
A mother was 27 years old, when she gave birth to her first daughter. The sum
of their ages is now 51 years. Find their present ages.
The mother is 27 years older than her daughter, so since the daughter is now x
years old, her mother is now x+27 years old.
The sum of their ages is now 51 years.
so




x + (x+27) = 51
x + x + 27 = 51
2x + 27 = 51
2x = 24
x = 12
So the daughter is 12 and her mother is x + 27 which equals 12+27 or 39.
Edwin