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