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