Answer
See the detailed answer below.
Work Step by Step
$$\color{blue}{\bf [a]}$$
As we see in the figure below, the negative charges in both objects repel. So, the negative charge at the top of the electroscope will travel downward. This makes the leaves move away from each other since the negative charge in both leaves has increased.
$$\color{blue}{\bf [b]}$$
As we see in the figure below, the negative charges at the top of the
electroscope will travel upward since they are attracted to the positive charge. This makes the leaves move closer to each other since the negative charge in both leaves has decreased.