Can someone help me solve for x? I tried many different ways, but I never got the answer so can someone show me the steps so I can understand what I did wrong?

1.

The answer should be , but I don't know how to get that answer...

2.

The same for this one, i don't know how to get the answer