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