First we need to find the area of the barn's walls.
2 (length x height) + 2 (width x height)
=2 (80x30) + 2 (50x30)
=2 (2400) + 2(1500)
=4800+3000
=7800 ft^2
Now we can find the amount of gallons needed, then the total cost.
7800 ft^2/420 ft^2
=18.57 gallons
=19 gallons
19 gallons x $28
=$532
It will cost $532 to paint the barn