Let the present ages of Manish and Savita be x years and y years respectively.
According to the first condition,
x + y = 31 …(i)
3 years ago,
Manish’s age = (x – 3) years
Savita’s age = (y – 3) years
According to the second condition,
(x – 3) = 4 (y – 3)
∴ x – 3 = 4y – 12
∴ x – 4y = -12 + 3
∴ x – 4y = -9 …(ii)
Subtracting equation (ii) from (i), we get

∴ x = 31 – 8
∴ x = 23
The present ages of Manish and Savita are 23 years and 8 years respectively.