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