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