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