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