lighthouses have been used for centuries to help sailors navigate their way through treacherous waters.…