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