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