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