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