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