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