There are 6 baskets on the table. Each basket has 3, 6, 8, 18, 17 and 14 apples. Matt chose third, Olivia chose second, Sean chose sixth, Emma chose fifth, Liam chose fourth, and John chose first. How many apples did John and Matt choose in total?