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