Is there an equation for this?
Answer:
It happens only when they are inversely proportional to eachother.
X = 1/y