There is no solution to this problem
If you want to prove this, let the two numbers be x and y.
x + y = 3 so y=3-x
and
x*y=40
so
x(3-x)=40
Expand the left side, then take it all to one side and put = 0
When you use the quadratic formula to solve you will find that there are no solutions.