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