The loss or conservation of kinetic energy is the difference between an elastic and an inelastic collision. Kinetic energy is not preserved in an inelastic collision, and it will change forms into sound, heat, radiation, or another form. The kinetic energy in an elastic collision is preserved and does not change forms.
Given that:
k = 500 n/m,
work (W) = 704 J
spring extension (x) = ?
we know that,
Work = (1/2) k x²
704 = (1/2) × 500 × x²
x = 1.67 m
A spring stretched for 1.67 m distance.
To develop this problem it is necessary to apply the Rayleigh Criterion (Angular resolution)criterion. This conceptos describes the ability of any image-forming device such as an optical or radio telescope, a microscope, a camera, or an eye, to distinguish small details of an object, thereby making it a major determinant of image resolution. By definition is defined as:

Where,
= Wavelength
d = Width of the slit
= Angular resolution
Through the arc length we can find the radius, which would be given according to the length and angle previously described.
The radius of the beam on the moon is

Relacing 


Replacing with our values we have that,


Therefore the diameter of the beam on the moon is



Hence, the diameter of the beam when it reaches the moon is 7361.82m
Q=mcΔt
Q= 1kg * 800J/kg°C*4°C
Q= 3200J