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