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