Below is an instruction that describes a task. Write a response that appropriately completes the request in English. Please answer in English.

### Instruction:
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?

### Response:
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.
#### 20