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