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