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