The metals with a d5s2 configuration are the group 7 elements: Mn (3d54s2), Tc (4d55s2) and Re (5d56s2).
(a) NCERT shows (Fig. 4.1 and 4.2) that the metals of the second and third series have higher melting points and enthalpies of atomisation than the corresponding metals of the first series. The larger 4d and 5d orbitals spread further from the nucleus and overlap better with those of neighbouring atoms, so more of the d electrons take part in strong metal–metal bonding; this is why metal–metal bonding is much more common in compounds of the heavy transition metals. The 5d metal therefore has the highest melting point. As J has the highest melting point, J is rhenium, with its valence electrons in 5d orbitals.
(b) L is manganese. It is a first-series (3d) metal, so it already has weaker metal–metal bonding than Tc or Re. In addition, Mn is one of the anomalous metals of Fig. 4.1: its stable half-filled 3d5 electrons are held tightly and take less part in metallic bonding, so its melting point is unusually low even for the 3d series. That leaves K = technetium in the middle.