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