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