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