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