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