The cost of a babysitying service on a cruise ships is $10 for the first hour, and $12 for each additional hour. If the total cost of babysitting Aaron was $58, how many hours was Aaron the sitter?