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