We have two bulbs, 100 W and 50 W - I assume the voltage is 230 V 50 Hz single phase A.C. the standard supply
When P is 100W, Current(I) is higher
but when P = 50W, current is lower (remember that V is constant)
then use V = IR, when current is high, resistance is low
Hence 50 W bulb has a higher resistance than 100W bulb