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