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