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