A father is three times as old as his son. After twelve years, his age will be twice as that of his son then. Find their present ages.