The present age of raj and ram is in the ratio 1:3. After 5 yrs rams age wiil be 2yrs more than twice of rajs age . Find their present ages

Let raj age be x,since ratio is 1:3,ram is 3x. after 5yrs: 3x+5=2+2(x+5), find x,and their respective ages

To solve this problem, let's assign variables to represent Raj's and Ram's present ages. Since their ages are in the ratio 1:3, we can let Raj's age be x and Ram's age be 3x.

According to the problem, we are given the information that after 5 years, Ram's age will be 2 years more than twice Raj's age. So, in 5 years, Ram's age will be (3x + 5) and twice Raj's age will be 2(x + 5).

The problem states that Ram's age will be 2 years more than twice Raj's age. Mathematically, this can be represented as:

3x + 5 = 2(x + 5) + 2

Now, let's solve this equation to find the value of x, which represents Raj's age.

Expanding the equation, we have:
3x + 5 = 2x + 10 + 2

Combining like terms, we have:
3x + 5 = 2x + 12

Subtracting 2x from both sides, we have:
x + 5 = 12

Subtracting 5 from both sides, we have:
x = 7

So, the present age of Raj is 7 years.

Now that we know Raj's age, we can find Ram's age by substituting x into the relationship defined earlier. Ram's age is 3x, so:
Ram's age = 3(7) = 21

Therefore, the present age of Raj is 7 years, and the present age of Ram is 21 years.