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