Question 436378
Let x equal raj's age,y equals shyam's.  The difference between their ages now is (x-y). When x was y's age, he was twice as old as y was then.  Now he is three times as old as y was then. So:
x-y=(1/3)x
3x-3y=x
2x=3y
x+y=50
2x+2y=100
3y+2y=100
5y=100
y=20
x=30.