One way to spread water over a hillside field, "f m is the main ditch and the slope of the hill as shown…