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