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