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