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