Diameter of the moon from the diameter seen in the telescope
A telescope wouldn't have a single lens, I'm sure you know. If you were to use the setup in your diagram, focusing the image of the moon on a flat surface, you could find its diameter with the method provided. The distances f in the diagram are the focal length of the lens, where a very distant object will be in sharp focus, and that's where you'd end up placing the flat surface.