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