The total number of gallons of paint needed for the big room is 3x and the number of gallons of paint needed for the small room is 2y. 3x + 2y = 16 Given the sizes of the room, the relation should be that, x = 2y Solving the equation, 3(2y) + 2y = 16 y = 2 Therefore x is equal to 4 gallons. With the condition that only the bigger room is painted, the number of gallons of paint used should be 12 gallons and what is left should be 4 gallons.