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