The total cost of renting the cottage for 8 hours is $5 x 8 = $<<5*8=40>>40.

So, each friend pay $40/2 = $<<40/2=20>>20 each.

# Answer

20
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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{{}}.<|im_end|>
<|im_start|>assistant

user
20
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?
train