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