a and b are the roots of that equation. Use the quadratic formula to find them.
Then simplify what you have to find and then do the substitution. It falls out well.
If you still need help post what you have tried for yourself so that we can see where you get stuck.