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