How do I work this problem

Since the perimeter is the sum of all the sides, you can add all the sides up and set them equal to 36
x+2x-3+x+3=36
You can combine like terms
4x=36
x=9