.
From the condition, we have these two equations
T^2 + M = 62 (1)
T + M^2 = 176 (2)
Subtract equation (1) from equation (2). You will get
(M^2 - T^2) + (T - M) = 176 - 62, or
(M+T)*(M-T) - (M-T) = 114, or
(M - T)*(M + T - 1) = 2*57 = 6*19.
So, there are two opportunities:
a) M-T = 2, M+T-1 = 57, which implies M = 29, T = 27,
or
b) M-T = 6, M+T-1 = 19, which implies M = 13, T = 7,
Then the check with original equations (1) and (2) leads to the UNIQUE
ANSWER. The difference between their ages is 6 years.
Solved.