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