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