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