Answer:
B) 36 cubic feet
Step-by-step explanation:
Dimensions of the room are x, y and z feet. It is given that x = 6 feet.
Manav took 8 hours to paint the wall with dimensions x and z.
This means, in 8 hours Manav painted area = xz = 6z
In 1 hour Manav painted area = 
Manav took 4 hours to paint the wall with dimensions y and z.
This means, in 4 hours Manav painted area = yz
In 1 hour Manav painted area = 
Manav took 12 hours to paint the ceiling with dimensions x and y.
This means, in 12 hours Manav painted area = xy = 6y
In 1 hour Manav painted the area = 
Since, Manav works at constant rate, this means the worked done in 1 hour in all 3 cases would be the same. So we can write:

Using the first two equations, we get:

Using the last two equations, we get:

So, we have the follwoing dimensions of the room:
x = 6 feet
y = 3 feet
z = 2 feet
So the volume of the room is = 6 x 3 x 2 = 36 cubic feet