Given the following cost function

P1=210-5Q1
P2=125-1.25Q2
TC=4000+20Q where Q=Q1+Q2
With a clear solution compute Q and P