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