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