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