Answer:
Electric energy moves through the wire to the lamp's bulb. In the bulb, electric energy transforms into thermal energy and light energy.
Explanation:
In the first case, the force acting on the spring is the weight of the mass:

This force causes a stretching of

on the spring, so we can use these data to find the spring constant:

In the second case, the first mass is replaced with a second mass, whose weight is

And since we know the spring constant, we can calculate the new elongation of the spring:
(amount of heat)Q = ? , (Mass) m= 4 g , ΔT = T f - T i = 180 c° - 20 °c = 160 °c ,
Ce = 0.093 cal/g. °c
Q = m C ΔT
Q = 4 g × 0.093 cal/g.c° × ( 180 °c- 20 °c )
Q= 4×0.093 × 160
Q = 59.52 cal
I hope I helped you^_^