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