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