A man was 3 times as old as his son. 2 years hence twice his age will be equal to 5 times that of his son. Find their present ages.