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