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