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