Can you pls help me with this 2 step problem question thank you

We are given that Stephanie made $27 for bags of oreos, $18 selling chocolates, $45 selling chunkies.
If each bag was sold at the same price, this means that the price must be the greatest common factor of the amounts that were made. That is:
[tex]p=\text{GCF}(27,18,45)[/tex]Where "p" is the price, and "GCF" is Greatest Common Factor.
Now, the factors of 27 are:
[tex]Factors\text{ 27 = }1,3,9,27[/tex]The factors of 18 are:
[tex]\text{Factors 18 = }1,2,3,6,9,18[/tex]The factors of 45 are:
[tex]\text{Factors 45 = }1,3,5,9,15,45[/tex]Therefore, the greatest common factor is:
[tex]\text{GCF}(27,18,45)=9[/tex]Therefore, Stephanie charged $9 for each bag.
Part 5. The total amount she made for sugar cookies was $45, therefore, the amount she charged per bag of cookies multiplied by the number of bags of cookies she sold must be equal to m45, like this:
[tex]9n=45[/tex]Where "n" is the number of bags of cookies she sold. Now, we solve for "n" by dividing both sides by 9:
[tex]\begin{gathered} n=\frac{45}{9} \\ \\ n=5 \end{gathered}[/tex]Therefore. she sold 5 bags of sugar cookies.