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