Let be "x" the number of bookcases that the custodian will be able to repaint completly with 5 gallons of paint.
According to the data given, the custodian needs 2 gallons of paint to repaint one bookcase. Since all the bookcases are equal, you can set up the following proportion:
Now you must solve for "x" in order to find its value:
Notice that the custodian will be able to repaint 2 bookcases completely, then you can say that: