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