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