Tony rents a bike that costs $4 per hour and $10 for the lock. He has $32 to spend. How long can he rent the bike? Write an equation that represents this situation. Be sure to explain how you got your equation and specify what the variables represent.