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