Answer:
Ram: 21, Hari: 12
Step-by-step explanation:
To solve the problem, we can use the following notation. We call:
= Ram's age at present
= Hari's age at present
We know that:
- Ram is 9 years older than Hari --> mathematically, this can be written as

- Three years ago, Ram was two times as old as Hari was --> mathematically, this can be written as

where (r-3) is Ram's age 3 years ago, while (h-3) is Hari's age 3 years ago
Substituting eq.(1) into eq.(2), we find:

So, Hari's age is 12; therefore, Ram's age is