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