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