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