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