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