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