36-x=9*(6-x)
36-x=54-9x
8x=54-36
x= 18/8
x=2.25(9/4)
The answer is not an integer, there is something wrong with the data you gave!