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