How do I shift "A" up to look more like "B" [Screenshot]

So far I’m not able to find a solution.

Add a constant value to the output of the mask node before doing the other operations. Something like this:

So you basically shift the incoming gradient up and down.