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