To solve this problem just do the following,
x+9=-12
-9 -9
x=-21
Check
-21+9=-12 = True
Hope this helps!=)
Set it up as a proportion make sure the same sides of each triangle match cross multiply then solve it like a regular equation hope the image helps like I said after u set it up and cross multiply it's a regular equation and all u need to do is solve for X