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