Final answer:
To determine the ages of Ram and Shyam, we set up two equations from the given conditions and solved them to find that Shyam is currently 10 years old and Ram is 30 years old.
Step-by-step explanation:
The question is asking us to solve for the ages of Ram and Shyam based on a set of conditions. We can set up the problem with two equations to find the solution. Let's assume that Shyam's age is 'x' years. Therefore, Ram's age would be 3x years, because Ram is 3 times as old as Shyam. After 10 years, Shyam's age will be x + 10 years and Ram's age will be 3x + 10 years. According to the second condition, after 10 years, Ram's age will be twice that of Shyam's age which gives us the equation 3x + 10 = 2(x + 10).
To find the ages of Ram and Shyam, we need to solve this equation:
- 3x + 10 = 2(x + 10)
- 3x + 10 = 2x + 20
- 3x - 2x = 20 - 10
- x = 10
Thus, Shyam's current age is 10 years and Ram's current age is 3 × 10 = 30 years.