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