From your description, it ought to be doing this, right?
low2 + (value - low1) * (high2 - low2) / (high1 - low1)
Find how far you are into the first range, scale that distance by the ratio of sizes of the ranges, and that’s how far you should be into the second range.