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