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