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