Could someone help me to solve this problem? I want to get the solution on attached photo. I don’t know if my solution is on the right way.