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