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