In case you are wondering, I used the pythagorean theorem. If you want to learn how to use it I suggest you google it, there are plenty of sites that explain how to use it.
If you have any questions about the way I solved it, don't hesitate to ask me in the comments below :)