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