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