Answer:
466 and 286
Step-by-step explanation:
There is 1000 grams in a kilogram so he had a mass of 5,000 grames in his bag
For this case we have the following polynomial:

We must find the greatest common factor of the terms of the polynomial.
The GCF of the coefficients is given by:

Then we look for the GFC of the variables:
We have then:

Finally rewriting we have:

Answer:
the complete factored form of the polynomial is:
