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