Increasing a variable by a percent based on another variable?

I'm not sure if I can do this in events or if I'll have to do this with javascript. Say I have var X and var Y. I want to increase var X by Y but Y is a percent. For example if I want Y to be a 20% increase and to increase X by Y so that if X is 10 then the returning number will be 12?

How this pertains to the game:
You have a stat (wisdom) that increases mana regeneration rate. It starts off at a base of 10 and increases as you level. But you can get talent points to increase this. So You have 3 levels on increase, a 20%, 40%, and 60% increase. So I save wisdom as var A, have total mana regen total as var X, and mana increase as Var Y. I want var A to be increased by the value in percent of var Y and stored as var X.
This can be done in fewer operations if you don't care about modifying Y. But, presuming you want to preserve its value:

Control Variables -> Z = Y
Control Variables -> Z + 100
Control Variables X * Z
Control Variables X / 100

You could also do it in a single operation using script calls, of course, but that's fairly straightforward math to use event commands.

Original thread: https://forums.rpgmakerweb.com/threads/increasing-a-variable-by-a-percent-based-on-another-variable.164603/