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