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