=
is equivalent to
= .
Replace here (x+y) by 6 (due to the first equation) and cancel both sides by the factor of 6. You will get
= .
Now, from the first equation express x = 6-y and substitute it into the last equation. You will get
= 24.
Simplify and solve this quadratic equation.