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