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