Alan needs 36 quarts of paint to paint the basement of his house. If 1 gallon is equal to 4 quarts, how many gallons of paint should Alan buy?
4 gallons

9 gallons

18 gallons

36 gallons