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