A father is five times older than his daughter. After 10 years he will be twice as old as his daughter. Find their present ages

f = 5 d

f+10 = 2(d+10)
so
5 d + 10 = 2 d + 20