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