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