In an optimization problem, how do you know which variable to try and eliminate?

For example -- A cylindrical soup can is meant to hold 460 cubic centimeters of soup.

The equation is (pi)(r^2)(h) = V

460 = (pi)(r^2)(h)

You try and eliminate h, but why?

Thanks!