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