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