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