Let number of riders = R and Let the price = P. Let revenue = S.
dR/dP=-400 riders/dollar . Integrate to find R=-400P+C. Evaluate C by noting that R=10,000 with P=$20 finding C=18000 thus R=18000-400P. Sales = R*P = 18000P-400P2. To find the maximum of S find dS/dP and set =0 which yields P=$22.50. Note that d2S/dP2= -800 <0 indicates that a local maximum occurs at P=22.5