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