Here's my solutions: $$1.)\,(2)(4!)=48$$ $$2.)\,(4)(3)(3!)=72$$ $$3.)\,48+48+3!=102$$
It's the last one I get wrong. The correct answer is 42. The solutions manual of the textbook says the following:
Someone mind explaining what exactly are the double counted cases. Also, what is wrong with my way of doing 1c? I think it is just a simple OR problem, as in an application of the addition principle.
Thank you very much.



Let $A$ be the event that Anya is at the left end of the line; let $B$ be the event that Elena is at the right end of the line. Then the event that Anya is on the left or Elena is on the right or both is $A \cup B$.
We want to find $|A \cup B|$, the number of elements that are in the union of $A$ and $B$. Notice that if we simply add the number of elements in $A$, $|A|$, to the number of elements in $B$, $|B|$, we will have added those elements in the intersection twice. We only want to count them once. Hence, we must subtract them from the total. Therefore, $$|A \cup B| = |A| + |B| - |A \cap B|$$
$|A|$: Anya is at the left end of the line. There is one way to place Anya and $4!$ ways to place the remaining four people in the remaining four positions. Hence, there are $4!$ arrangements in which Anya is at the left end of the line.
$|B|$: Elena is at the right end of the line. There is one way to place Elena and $4!$ ways to place the remaining four people in the remaining four positions. Hence, there are $4!$ arrangements in which Elena is at the right end of the line.
$|A \cap B|$: Anya is at the left end of the line and Elena is at the right end of the line. Anya can be placed in one way, Elena can be placed in one way, and the remaining three people can be arranged in the remaining three positions in $3!$ ways.
Hence, $$|A \cup B| = |A| + |B| - |A \cap B| = 4! + 4! - 3!$$