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