A law firm is going to designate associates and partners to a big new case. The daily rate charged to the client for each associate is $500 and the daily rate for each partner is $1400. The law firm designated 3 times as many associates as partners to the case and was able to charge the client $5800 per day for these lawyers' services. Determine the number of associates assigned to the case and the number of partners assigned to the case.