Describe the maximum value of OP, O being the origin of co ordinates where P describes the curve

While solving the problem, taking and framing the differential equations by differentiating with respect to and solving, I get the following relations: where

Now I have as functions of one variable and I have to satisfy two constraints. How is it possible? Where is my understanding of Lagrange's Multipliers flawed?