Uh oh! Wolfram|Alpha doesn't run without JavaScript.
Please enable JavaScript. If you don't know how, you can find instructions
here
.
Once you've done that, refresh this page to start using Wolfram|Alpha.
max (94-20p-q)(p-1)+(58+3p-3q)(q-4)
Natural Language
Math Input
Extended Keyboard
Examples
Upload
Random