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