Jack and Jill shared the cost of renting a cottage that costs $5 an hour. If they rented it for eight hours, how much did each friend pay?
Please reason step by step, and put your final answer within \boxed{}.
user