For a convex lens to form a real image, the distance between the object and…