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