31 its easy just count the squares. Each half count to to equal one square.
The lower number of the fraction is the X value and since it's negative u go 3 to the right(if u loon at point T)and since it's a negative 4 on the top you go 4 down and if you would reverse it you would notice that 0|4 is 1 y value below the straight line so the coordinates are (3|5)
The total area painted was 480 inches. 4 cubed is 64, 8 cubed 512. 512 +64= 576. Then you subtract two sides of the 4 inch square because the bottom is not painted and one side is pushed against the 8 inch cube. That means 576-32= 544. Then you subtract the bottom of the 8 inch cube, which means 544-64= 480.
I got x=18
3(x-4)-2(3x+4)=4(3-x)+5x+4
3x-12-6x-8=12-4x+5x+4
3x-20=16+x
2x=36x
x=18