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