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