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