Do you know of any online calculator that might solve a question like this one?

8x+2=x. Or 3x+3(x+4) = 12

I cannot solve these. & I've tried many times. My mother doesn't even know.

Help please.