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