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