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