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