Answer:
You've described a system of equations:
x+y=6
x*y=4
The easiest way to solve is with substitution. If you rearrange the first equation, you'll find that y = 6-x. Substitute this into the second to get x(6-x) = 10
This is a quadratic equation that you should be able to solve with the quadratic formula. Be aware that the answers are complex.
Explanation: