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