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