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