Electric power is equal to product of electric current I and voltage V
P=I⋅V.P=I\cdot V.P=I⋅V.
We know that according to Ohm's law V=I⋅R,V=I\cdot R,V=I⋅R, so P=I2⋅R.P=I^2\cdot R.P=I2⋅R.
If R=2 ohms and P = 50 watt, we get
I=PI=502=5 A.I = \sqrt{\dfrac{P}{I}} = \sqrt{\dfrac{50}{2}} = 5 \,\mathrm{A}.I=IP=250=5A.