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