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