Du hast überall das x in der Gleichung
G = 200*x*e-0.01x - (50x + 1500)
Das ist aber einmal x und einmal p , also
G(p,x) = 200*p*e-0.01p - (50x + 1500)
und für das hintere x kannst du ja x=200e−0.01p
einsetzen.
Dann hängt alles nur noch von p ab.
G(p) = (200p-10000)*e-0,01p - 1500
G ' (p) = ( 300-2p)*e-0,01p
Also max bei p=150 und G(150) = 2962,60