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