It takes 1.5 gallons of paint to cover the walls in 3 rooms. Write an equation relating the number of rooms r to the number of gallons g. How many rooms can be painted using 9 gallons of paint?