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