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