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