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