From my point of view you can place the "which ever is higher" in both the positions you have indicated.
The choice between "whatever" and "whichever" is that "whatever" refers to a choice from many things or from an infinite number of things, but "whichever" refers to a choice from a few things . Therefore in this instance whichever seems more correct (however I wouldn't mind betting tha