I need help in the setup of this word problem: Find two positive integers whose sum is 50 and whose product is as large as possible.

I set it up as and as large as possible.

I know that these are usually done by solving for one of the variables, substituting it into the other problem, taking the derivative, finding the absolute max, blah blah, but I'm confused because the second equation has an indeterminate answer. Any help on how to set this up would be awesome!