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