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