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