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