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