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