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