A collection of Halloween candy contain a total of 5 Goodbars and Moundbars.Chew on this,The grams of fat in these candy bars exceed the daily maximum desirable fat intake of 70 grams by 7.1 grams.How many bars of each kind of candy are contained in the Halloween collection ?

Please give me solution of this question

To solve this problem, we can set up a system of equations. Let's define the following variables:

G = Number of Goodbars
M = Number of Moundbars

From the information given, we can set up the following equations:

Equation 1: G + M = Total number of bars in the collection (unknown)
Equation 2: (G * fat content per Goodbar) + (M * fat content per Moundbar) = Total grams of fat exceeding the daily maximum (7.1 grams)

We need to set up these equations using the available information. From the problem statement, we know that there are a total of 5 Goodbars and Moundbars, so Equation 1 becomes:

Equation 1: G + M = 5

We also know that the grams of fat in these candy bars exceed the daily maximum desirable fat intake of 70 grams by 7.1 grams, so Equation 2 becomes:

Equation 2: (G * fat content per Goodbar) + (M * fat content per Moundbar) = 70 + 7.1

To solve this system of equations, we can use substitution or elimination method.

Let's rearrange Equation 1 to solve for G:
G = 5 - M

Substitute this expression for G in Equation 2:
(5 - M) * fat content per Goodbar + (M * fat content per Moundbar) = 70 + 7.1

Now, plug in the values for the fat content per Goodbar and Moundbar. Let's assume that the fat content per Goodbar is Fg and the fat content per Moundbar is Fm.
(5 - M) * Fg + (M * Fm) = 70 + 7.1

Simplifying the equation gives:
5Fg - M * Fg + M * Fm = 77.1

Now, substitute the value of Fg and Fm (which are unknown) with variables A and B respectively:
5A - M * A + M * B = 77.1

Now we have a system of equations with the variables M, A, and B.

At this point, we don't have enough information to solve for M, A, and B. If there were additional information available, such as the specific fat content values, we could substitute those values into the equation. Without those values, it is not possible to determine the exact number of bars of each kind of candy in the Halloween collection.