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