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