Rearrange formulas to isolate specific variables