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