Geometry is a foundational branch of mathematics that deals with shapes, sizes, relative positions of…