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