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