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