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