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