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