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