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