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