The correct option is B 6 kg
Initially ice will absorb heat to raise its temperature to 0∘C, then its melting takes places.
If m1 = Initial mass of ice, m′1 = Mass of ice that melts and mw = Initial mass of water
By law of mixture,
heat gained by ice = heat lost by water
⇒m1×c×(20)+m′1×L=mwcw(20)
⇒2×0.5(20)+m′1×80=5×1×20
⇒m′1=1 kg
So, final mass of water = Initial mass of water + Mass of ice that melts =5+1=6 kg