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