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