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