The cost that a carpet cleaning company charges is directly proportional to the number of rooms cleaned. The cost is $32 for each room. (a) How many rooms can a hotel pay the company to clean for $500? Write and solve an equation.