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