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