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