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