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