I am unsure how to figure this out, if someone could give me the formula or inform me how to do it, I would appreciate it.

I am suppose to find the value of X

(Our math teacher had a subsitute give us these problems, and the sub didn't know how to explain it.)