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