Given:
1/5 of Barry's salary was going for his rent.
1/7 of Barry's salary was going for his utility bill.
1012 dollars was left after all the payments.
Required:
What was his monthly salary?
Step-by-step explanation:
Let us assume that Barry's monthly salary is 'x'
So the sum of his payments and the balance amount will give us his total salary.

Now Barry uses 1/5 of his salary in rent, that is

Barry uses 1/7 of his salary in utility bill, that is

And after all the payments the money he is left with is 1012 dollars.

Now let's calculate his total salary

Simplifying it further we get


x = 1540 dollars
Final Answer:
Barry's monthly salary is 1540 dollars.