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