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