An apple has the height $$G$$ (object size) and is imaged with a lens. The object is located at a distance $$g$$ from the lens (object distance). The image of the object produced by the lens has the size $$B$$ (image size) and the image has the distance $$b$$ to the lens (image distance). The lens has the focal length $$f$$.