let what is equally to?

substituting z for 3 I get

I'm trying to get it into the form

but what I'm confused about is the which gives where

now I'm not sure if I should take the above value and substitute it so that I would get:

and

for some reason this equation don't look right even, considering the fact that I have 2 possible values.