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