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