You're in an airplane with lackluster thrust-weight ratio at altitude. You're cruising WOT at 100kts, Va is 85, Vy is 75, Vx is 60kts and Vs1 is 55kts. You're stupidly flying a poorly charted mountain pass in IMC when terrain warning radar (late for whatever reason) tells you to pull up. Your max certified ceiling says you'll make it over the terrain, but you don't have much performance margin for your vertical manuever. Terrain avoidance has a indication pre-programmed at 60kts telling you to climb at that speed, 60kts. You are aware this is is a software bug, in that it always defaults to Vx. If you pull too hard, you'll bleed too much energy and pull into an accelerated stall. At 1g you'll smash into the mountain. Not that it matters, but there is a 9g limit on the airframe. Can you calculate or determine the optimum solution on the ideal amount of Gs to pull for this manuever?