A mother, father, and their two children are to line up for a photo. In how many ways can these four family members line up so that the mother and father are not next to each other? Be sure to show your work.