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