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