NOTE:
You do not need to write all of --> --> --> --> --> -->
For your teacher, --> may be enough.
At most your teacher may want to see some cancelling out of factors that is easy to scribble on paper, but I would not know how to type here.
In any case the crossing out of those factors is not algebra voodoo magic. It is the rearranging to give those (1) factors.