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