Answer:
Q = c M ΔT where c is the heat capacity and M the mass present
Q2 / Q1 = M2 / M1 since the other factors are the same
M = ρ V where ρ is the density
M = ρ Π (d / 2)^2 where d is the diameter of the sphere
M2 / M1 = (2 D/2)^2 / (D/2)^2 = 4
It will take 4Q heat to heat the second sphere