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