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