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