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