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