I don't understand how you came up with the equations.
Why do you add two mother's ages: the current one and the future one? And why do you square the result?The mothers age >
Mother's current age is . After some number of years, she is .
Daugter's current age is . After the same number of years, she is .
From this, it seems clear how to construct an equation.