To develop this problem it is necessary to apply the concepts related to the proportion of a neutron star referring to the sun and density as a function of mass and volume.
Mathematically it can be expressed as

Where
m = Mass (Neutron at this case)
V = Volume
The mass of the neutron star is 1.4times to that of the mass of the sun
The volume of a sphere is determined by the equation
Replacing at the equation we have that



Therefore the density of a neutron star is
