The desired result can be obtained by solving the three equations mentioned in the image attached.
Thank you sir.