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