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