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