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