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