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