While this does get you there eventually, it's much longer and harder than is really necessary. You could also use matrices, but it also is much more time-consuming and more complex than is really necessary. If you have a feel for about how high you can get with those kinds of numbers, you can easily poke around that area until you find the peak and get the answer much quicker.