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