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