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