Two college friends rent an apartment. They must pay the landlord two months' rent and $500 security deposit when they sign the lease. The total amount they pay the landlord is $2800. How much does it cost to rent the apartment for one month?