Ryan spent 1/4 of his monthly salary for rent and 1/7 of his monthly salary for his utility bill. If $765 was left, what was his monthly salary?