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