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