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