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