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