To write a function rule for Samantha's situation, we can express the total amount of money, denoted by x, as a function of the number of weeks she has been saving, denoted by w.
Since Samantha saves $5 each week, the amount of money she saves after w weeks can be found by multiplying the number of weeks (w) by $5. Thus, the function rule can be written as:
x = 5w
In this function rule, x represents the total amount of money saved, and w represents the number of weeks Samantha has been saving.