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