Three software applications are priced as shown. Spreadsheet and database programs sold in equal numbers, but 35 more word processing applications were sold than the other two combined. If the three applications generated sales of $74,850, how many spreadsheets were sold?