A man is 40m from the foot of a cliff of height 23m. Calculate the…