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