a mother is three times as old as her daughter five years later the mother will be two and a half times as old as her daughter and find their present ages

M = 3D

M+5 = 2.5(D+5)

Substitute 3D for M in the second equation and solve for D. Insert that value into the first equation to solve for M. Check by putting both values into the second equation.