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