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