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