Three friends went to Six Flags. Each person pays $40 for their entry ticket. For each ride, they each pay $16.00. If all three friends go on 6 rides. How much money they did they spent in total ?