We are given a problem that can be solved using a system of linear equations. First, we need to find the linear equations that model the cost of each of the candy stores. We need to have into account that the total cost will be the initial entrance fee plus the cost per candy multiply by the number of candies:
Let "C" be the cost, and "n" the number of candies, then the equations for each candy store are:
Since we are asked the number of candies for the cost to be the same, we need to find the solution to the system of equations, we can do that by replacing the value of "C" from equation (1) into equation (2), like this: