Eight friends went on a hiking trip. They took 40 bottles of water and iced tea. Each friend carried the same number of bottles. They each carried 2 bottles of iced tea. How many water bottles did each friend carry?