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