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