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