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