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