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