Was this done correctly? I still can't grasp this concept completely and I feel like I did something wrong here. Any help is greatly appreciated!

What you have done is correct but i think its better to write the 2 roots separately a I mentioned in a previous question