The two answers you offer are equivalent. They both have a lot of superfluous (yet harmless) brackets. They would be correct, but that they both lack this exclusion:
ab ≠ 0
Here is a complete answer:
(32a²b + 12ab³c) / (8ab)
= 4a + 3b²c/2, for ab ≠ 0