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