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