To elaborate on SmileyCraft's answer (they give the answer but not the underlying reason why, which I feel is more important)...
The Roots:
On first contending with the roots issue, which the comments hint you had trouble with: we know $-2i$ and $5$ are roots. We know that since $-2i$ is a root, $+2i$ is also a root because it's the conjugate of $-2i$. Then, since $5, -2i, +2i$ are all roots, we know that the polynomial can be factored as
$$f(x) = a(x - 5)(x - 2i)(x + 2i)$$
up to a leading coefficient $a$ that I'll talk about later. (You assumed $a=1$, and I'll explain why that's wrong in the next section.) It should be clear that this form is correct otherwise, since plugging in any of our roots gives $f(x) = 0$.
Since you wanted real coefficients and such, we note that $(x-2i)(x+2i)=x^2 + 4$, thus giving us the form you posed in the question (again, up to that constant $a$).
Finding $a$:
So now you know that the polynomial has the form
$$f(x) = a(x-5)(x^2 + 4)$$
The reason we include this $a$ is because the leading coefficient of the polynomial doesn't actually affect the roots: it does affect certain aspects of its behavior, but not that one.
(Note of import: that is only true when the polynomial is factored in this form. For example, in the other standard form of a cubic, $f(x) = ax^3 + bx^2 + cx + d$, the coefficient $a$ does affect the zeroes. It's only if in this factored form that the leading coefficient does not affect the roots. Play around on a graphing calculator, shouldn't be hard to convince yourself of these facts.)
We also know that the $y$-intercept of the graph is $(0,25)$. Thus, plug in $x = 0$ and $f(x) = 25$ in the equation above, and then you'll be able to figure out what $a$ actually is.
Plugging in these values, then, we see
$$25 = a(-5)(4) \;\;\; \Rightarrow \;\;\; 25 = a(-20) \;\;\; \Rightarrow \;\;\; a = \frac{25}{-20} = -\frac{5}{4}$$
Thus, the polynomial in its factored form is
$$f(x) = \left( -\frac{5}{4} \right)(x-5)(x^2 + 4)$$
There are two $x$-intercepts, the degree is at least $2$, from the behavior at $x$ approach $-\infty$ and $\infty$, the degree is at least $3$.
If it is cubic, the leading coefficient is $1$.
$$y=x(x-2)(x-c)$$
Since there are only $2$ distinct roots, $c$ is either $0$ or $2$.
The solution provided by the book is obtained by taking $c=2$.
Another alternative solution is $x^2(x-2)$.
Best Answer
Both forms are equivalent: $$ -6(x-\frac{1}{2})^2(x+2)(x-6)\\ =-\frac{3}{2}\cdot 2^2(x-\frac{1}{2})^2(x+2)(x-6)\\ =-\frac{3}{2}(2(x-\frac{1}{2}))^2(x+2)(x-6)\\ =-\frac{3}{2}(2x-1)^2(x+2)(x-6) $$