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