The total area of the walls of the bathroom can be calculated by multiplying the perimeter of the floor by the height of the walls, as shown in the following diagram:
The perimeter of the floor (in feet) is:
Then, the area of the walls is:
We should subtract the area of the window and the door from the total area of the walls. The area of the window is:
And the area of the door is:
Then, the total surface (in square feet) that will be covered by paint is:
Since Steve is going to paint two coats, then the surface area should be covered twice, and the total surface that is going to be painted is:
Two cans of paint will be enough to cover 400 square feet, and three cans would be needed to cover up to 600 square feet.
Since the total surface that is going to be painted is 476 square feet, then, Steve needs 3 cans of paint.