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