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