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