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