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