Due to Ohm's law, I is proportional to V and 1/R:
I ∝ V
I ∝ 1/R
R is proportional to the wire length L:
R ∝ L
Therefore I is also proportional to 1/L:
I ∝ 1/L
Calculate the scale factor due to increased voltage:
k₁ = 24/12 = 2
Calculate the scale factor due to decreased wire length:
k₂ = 1/(0.5/1) = 2
Multiply the original current by the scale factors to get the new current:
I = I₀k₁k₂
I₀ = 100mA, k₁ = 2, k₂ = 2
I = 100(2)(2)
I = 400mA