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