we have

Complete the square. Remember to balance the equation by adding the same constants to each side



Rewrite as perfect squares

remember that

Square root both sides





Simplify



therefore
<u>the answer is</u>


I think the answer is 12 because the greatest common factor of 24 and 36 is 12.
Hope this helped☺☺
(That means each goody bag will have 2 pencils and 3 erasers)