A lamp draws 3 amperes of current and is connected to a 120 volt supply.
We are asked to find the resistance of the lamp.
Recall the Ohm's law is given by

Where V is the voltage, I is current, and R is the resistance.
Re-arrange the equation for resistance

Substitute the given values

Therefore, the resistance of the lamp is 40 ohms.