A father is 28 years older than his daughter. In six years' time, he will be three times her age. Find their present ages.

Please use an algebraic equation to find the answer and show your working out if possible!!