COuld someone check this out for me and see if If done this right..

I'm worried incase I went wrong somewhere...

So the General solution is..

So this is the part I'm unsure I'm doing correctly...

I have the two solutions..

if someone could tell me if this is ok..or show me if ive gone wrong..

Even just a tick or a cross would help