Assume the number of cars sold q depends linearly on the price p. The line passes through (100000;300) and (50000;1000):
m=50000−1000001000−300=−50000700=−0,014,q=1700−0,014p.
The profit is G=(price−cost)⋅q:
G(p)=(p−30000)(1700−0,014p)=−0,014p2+2120p−51000000.
This is a downward parabola: the maximum is at the vertex
p=−2⋅(−0,014)2120=0,0282120=7530000≈75714,29.
At that price q=1700−0,014⋅75714≈640 cars are sold, for a profit of about 45714⋅640≈29.3 million euros.
p≈75714 € per car.