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