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