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