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