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