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