There are many ways to solve this... but lets try the most simple way.
Find the Square numbers up to 8
Right off the bat you can eliminate the last two...
This leaves us with...
1
4
9
16
25
36
The easy way to do it from here is pretend each of those are X... W stands for whole number. Plug in the X's... If 41-X does not equal a whole number, ELIMINATE it.
Let's try...
40 is not a square number... ELIMINATED a
Next number...
37 is not a square number either... 2 is eliminated
32 is not a square number... and since 3+6=9, 6 is eliminated as well...
This leaves us with 4 and 5 left... let's try..
The two numbers are 4 and 5.