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