You and two friends pay $40 for tickets. The cost was divided 3 ways in the ratio 1 : 3 : 6. How much did each person pay?