40 W has higher resistance.
Assuming supply is same => V is same, the first formula should be used. If I were constant the second formula should have been used.
40 W has higher resistance.
Assuming supply is same => V is same, the first formula should be used. If I were constant the second formula should have been used.