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