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