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