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