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