Answer:
Rob's age = 14
Sam's age = 42
Explanation:
sam is 3 times as old as Rob.
Let S be the sam's age and R be the Rob's age

If 15 is subtracted from Sam's age and 13 is added to Rob's age, their ages will be equal.

Replace S with 3R

Subtract R on both sides

Add 15 on both sides

Divide both sides by 2
R= 14
Rob's age = 14
Sam's age = 3(R)= 3(14)= 42
Sam's age = 42