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