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