You factored out the 6 incorrectly from the last equation. Check your work please.
Also what do you mean by a prime algebra equation?
And for the equation 30a^2bc+6abc-12
is the simplest form of that
or can it can go simpler?