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