I'm confused I have 2 answers to this problem and I don't know which is the right one. Can anyone help?

I m confused I have 2 answers to this problem and I don t know which is the right one. Can anyone help? class=