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