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