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