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