Fix the ray box and the screen a measured distance apart and slide the lens between them. Two positions give a sharp image, one magnified, one diminished. Measure the height of each, add them, and plot the sum against the separation. The gradient carries the focal length.