A bicycle manufacturer builds racing bikes and mountain bikes. Materials for the racing bike cost $110 while labor to build them is $120. Materials for the mountain bike cost $140 and labor is $180. The company budgeted $31,800 for labor and $26,150 for materials. How many of each bicycle did they build?

Solve for using substitution or elimination