Calculate direct and inverse proportions with the rule of three.
If A is to B, then C is to X. X = (B × C) / A