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