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