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