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