Two resistors of the same material and cross section area but different lengths L1 & L2 have their resistances in the ratio
L1+L2
R=ρLA
Hence, R1=ρ1L1A1 and R2=ρ2L2A2
Given that the material of the resistors is the same, and their cross-section areas are the same
Hence, ρ1=ρ2=ρ and A1=A2=A
Thus, R1=ρL1A and R2=ρL2A
Thus, R1R2=ρL1AρL2A
R1R2=L1L2
Or,R1:R2=L1:L2