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