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 (54-24p+1q)*(p-1)+(90-2p-4q)*(q-3)
Natural Language
Math Input
Extended Keyboard
Examples
Upload
Random