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