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