If tom has $918 left after spending 1/4 of his monthly salary for rent and 1/7 if his monthly salary for his credit card bill, what was his monthly salary ?