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