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