A group of 8 friends went to a sporting event. It cost a total of $40 for them to get in. How much did it cost for each of them to get in?