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