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