Answer
Factoring $g$ is a good idea because this allows for $g$ alone, to be isolated on one side of the equal sign.
Work Step by Step
Factoring $g$ will make it isolated on one side of the equal sign since the right side will be expressed as factors. This then allows the right side to be divided by the factor not containing $g,$ and hence, will isolate $g.$