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