You can put this solution on YOUR website! Let = Bob's age now = Joe's age now = Bob's age in 10 years = Joe's age in 10 years
-----------------
Bob is 20 and Joe is 30
check:
In 10 years Bob will be 30
In 10 years Joe will be 40
Bob will be 3/4 of 40 which is 30
OK