Question 5955
Define variables:
x = David's age
f = father's age
m = mother's age
We know:
f = m + 2
{{{x^2}}} = m
x + f + m = 80

Rearrange to {{{x = 80 - f - m}}}
Substitute m+2 for f, giving {{{x=80-(m+2)-m}}} which is {{{x=80-m-2-m}}}
which is {{{x=80-2m-2}}} which is {{{x=78-2m}}}
Substitute {{{x^2}}} for m, giving {{{x=78-2x^2}}}
Rearranging gives {{{2x^2+x-78=0}}}
This can be solved by factoring. We are looking for two numbers that multiply to -78 and when we subtract twice one from the other we get 1. If we assume the ages are given in whole numbers, possible answers to numbers that multiply to 78 are (1, 78), (2, 39), and (6, 13). By inspection we see that 2*6 is different from 13 by 1. So the factors are either 6 and -13 or -6 and 13. Since we want a positive 1, -6 and 13 are correct. The equation factors to
{{{x=2x^2+x-78=(2x+13)(x-6)=0}}} and x will be either -13 or 6.
Obviously,
x = 6
m = 36
f = 38
Checking, {{{6+36+38=80}}}