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