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