MZ Inversely proportional bars with HUD maker Ultra

Hello, I'm looking to make 2 bars using a variable display on the screen but they're inversely proportional.
They'll both start at say 50, but when the variable value goes up to 60, one of the bars fills up to 60 while the other down to 40. I'm currently displaying the variable bar using HUD maker Ultra but I'm having a tough time figuring out how to go about making this relationship.
I haven't used HUD Maker Ultra in a while, but I'd try a custom code like this.

Code:
return $gameVariables.value(150) - $gameVariables.value(120);

While v150 holds the Max of your Gauge, and v120 is the value that is 60 in your example.

Original thread: https://forums.rpgmakerweb.com/threads/inversely-proportional-bars-with-hud-maker-ultra.174499/