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