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