Answer:
A. $301
B. $721
Explanation:
Let $x be the amount of money they raised.
Rowena tried to put the $1 bills into two equal piles and found one left over at the end, then
![x=2q_1+1](https://img.qammunity.org/2020/formulas/mathematics/middle-school/ansp5b5lrzuykheb4isw333ya46t2oxur4.png)
Polly tried to put the $1 bills into three equal piles and found one left over at the end, then
![x=3q_2+1](https://img.qammunity.org/2020/formulas/mathematics/middle-school/wvx8iudx3nheiu7ffvebdamyfgmtsadg1u.png)
Frustrated, they tried 4, 5, and 6 equal piles and each time had $1 left over, then
![x=4q_3+1\\ \\x=5q_4+1\\ \\x=6q_5+1](https://img.qammunity.org/2020/formulas/mathematics/middle-school/4igpm6kocspy38ww5lcmb5ax6yhzzzn97e.png)
Finally Rowena put all the bills evenly into 7 equal piles, and none were left over, then
![x=7q_6](https://img.qammunity.org/2020/formulas/mathematics/middle-school/eacfphh4lodk7kawocll90a7n2dcn16cuo.png)
This means
is divisible by 2, 3, 4, 5 and 6 without remainder, so
![x-1=2\cdot 3\cdot 2\cdot 5n=60n](https://img.qammunity.org/2020/formulas/mathematics/middle-school/t1jwm1v37ibzduu0sxmgjexnb6n234rp0o.png)
Hence,
![x=60n+1, \ n\in N](https://img.qammunity.org/2020/formulas/mathematics/middle-school/rsmlox3hgv7q895is75r38w2lmutu56xyg.png)
The smallest amount of money they could have raised is $301, because
is divisible by 7.
Now, the number
should be divisible by 7 and must be greater than 500.
So,
![60n+1>500\\ \\60n>499\\ \\n>8](https://img.qammunity.org/2020/formulas/mathematics/middle-school/2ni6pgwkm253dymy641p3u9yujza8m0v04.png)
When n = 9,
is not divisible by 7.
When n = 10,
is not divisible by 7.
When n = 11,
is not divisible by 7.
When n = 12,
is divisible by 7.
B. The least amount of money they could have raised is $721