When you know the wattage and applied voltage of a light bulb, determine its resistance

p = V i

but i = V/r
so
p = V^2/R
and thus
R = V^2/p