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