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