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