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