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