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