There are 7 baskets on the table. Each basket has 7, 8, 2, 1, 17, 3 and 4 apples. Liam chose third, Noah chose second, Emma chose first, Olivia chose sixth, Matt chose fourth, Sean chose seventh, and John chose fifth. How many apples did John and Sean choose in total?