Let the common ratio between their ages be x. Therefore, Hari’s age and Harry’s age will be 5x years and 7x years respectively and four years later, their ages will be (5x + 4) years and (7x + 4) years respectively. According to the situation given in the question,

5x + 4/7x + 4 = 3/4

4( 5x + 4 ) = 3( 7x + 4 )

20x + 16 = 21z + 12

16 - 12 = 21x - 20x

4 = x

Hari’s age = 5x years = (5 × 4) years = 20 years Harry’s age = 7x years = (7 × 4) years = 28 years

Therefore, Hari’s age and Harry’s age are 20 years and 28 years respectively.