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