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