Joshua is now three times as old as his son. In 10 years time he will be twice as old as his son. Find their present ages.