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