Linear demand curve q=mp+b. From the points (p,q)=(20,1000) and (30,500):
m=30−20500−1000=−50,1000=−50⋅20+b⇒b=2000⇒q=2000−50p.
Profit:
π(p)=(p−10)(2000−50p)=−50p2+2500p−20000.
Vertex (maximum):
p∗=−2⋅(−50)2500=25 thalers.
Quantity q=2000−50⋅25=750 bulbs; profit
πmax=(25−10)⋅750=11250 thalers.
q∗=750,p∗=25 thalers,πmax=11250 thalers