The problen is factor y^2-5y+6.
now I know how to factor this to (y-2)(y-3).
my issue is I could reverse the position of the 2 and the 3 without harmimg the outcome is that correct?
You can only reverse it if the signs are the same and the number before the y is the same, and in this equation, yes you can.
If you had (y+2)(y-3) then you would not be able to switch the 2 & 3 because the signs are different (unless you moved the signs as well).
Also, if you had (2y-2)(y-3) then you would not be able to switch them because the number before the y is different.
But in your case, the signs and number before the y is the same, so you can reverse the positions of the 2 and 3.