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