WolframAlpha computational knowledge AI
max (106 - 3·p + 2·q)·(p - 1) + (195 + 2·p - 3·q)·(q - 2)