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