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