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