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