Given:
The linear equation is

where x represents the number of weeks and y represents the amount of money left in Alma's account.
To find:
The number of weeks in which Alma have $145 left in her account.
Solution:
We have,

Substitute y=145, we get

Subtract both sides by 577.


Divide both sides by -27.


So, the number of required weeks is 16. Therefore, the correct option is B.