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