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