How to solve this both problem?​

How To Solve This Both Problem class=