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