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