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