Five friends split the rent of an apartment.
Each guy also pays $50 for groceries,
If each person spends $240 to live there,
how much is the rent?​