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