john is now three times as old as his brother Sam. In five years, john will be twice as old as Sam will be then. Find their present ages.