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