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