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