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