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