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