Quite simply, I am trying reduce the size of a rectangle in ratio so that is has a certain area. I have a rectangle of area `X * Y`

, I have a target area `A`

, how would I get the multiplier `M`

such that `X * M`

and `Y * M`

equals `A`

Obviously multiplying X and Y by the ratio between the current and target area will not work, my gut feeling is I will also need the ratio between X and Y.

Sorry for such a simple question, happy to be *dup hammered* or closed, also sorry for the tag, I am just a bit lost,.