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