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