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