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