Find the formula of the revenue
Q=Q function of price P
S(p)=60p-900
P(p)=-13p+2850
p>50
Note: This is a piecewise definition.

My best go at the answer is
Q(p)=60(-13p+2850)-900

Is that anything close to right?