In how many different ways can 12 people stand in line for a photograph if the tallest and the shortest person CAN NOT stand next to each other?