What is the context of your function? This looks like a min/max function in linear programming. x and y would be determined by the vertices of the feasible region. Is that what this is?
It looks a though x = 3 and y = 1 were given to you up front, and you just substituted them into the function. Can you elaborate a little more?