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