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