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