Grayson and Eve both went bowling last weekend, but not together. Grayson went during open bowling time, paying $5 for shoe rental and $2 per hour. Eve went on family night, when each hour was $1 and shoe rental was $10. As it turned out, they played for the same number of hours and spent the same amount. How much did each one spend?