Math is not my strong suit..

8x+22y=40,000
x=? y=?
Round to nearest whole number

Code:
8x+22y=40,000
      -22y                   -22y

8x = 40,000 - 22y
x = (40,000 - 22y)/8

Replace back to main problem.. and I'm lost.

8((40000-22y)/8) = 40,000
-----                               -----------
 8                                         8

(40000-22y) /8     = 5000
multiply by 8 again..
40000-22y = 400000
-22y = 0
y = 0
So, thats not right. Help?