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