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