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