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