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