I've just started studying for an A-Level in Mathematics. This is probably a simple question but when I factorized the quadratic equation
$15x^2+42x-9$
I took out the common factor $3$ to get
$3(5x^2 + 14x - 3)$
Then factorized as follows:
$3(5x^2 - 1x + 15x - 1) = \\ 3(x(5x -1) + 3(5x - 1)) = \\ 3(x+3)(5x-1).$
When I checked the answer it was
$3(5x-1)(x+3)$
My question is this answer the same as the one I arrived to but with a different arrangement, or was my answer simply wrong?
This is my first question on math.stackexchange.com so I apologize in advance if I'm no adhering to the site's rules, e.g. what not to ask on the site.