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