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