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