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