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