Inverse variation:

y - the intensity of illumination, x - the distance from the light source
When the distance is 8 inches, the intensity is 12 lm.

When the distance is x inches, the intensity is 3 lm.

The distance can't be a negative number, so x=16.
The photoelectric cell is 16 inches from the light source.