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