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