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