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