Resistance of a wire is given by R=AρL
where, ρ= resistivity, L= length of the wire A= area of cross- section of the wire
Equating initial and finial volumes of the wire, we can write AL=A′L′=A′×(2L) ⇒A′=2A ∴RR′=ρL/AρL′/A′=(LL′)(A′A) =(L2I)(A/2A)=4 ⇒R′=4R=4(5)=20Ω