162k views
0 votes
One bar of candy A and two bars of candy B have 782 calories. Two bars of candy A and one bar of candy B contain 787 calories. Find the caloric content of eachcandy barCandy bar A contains calories and candy bar B contains calories

User MrKWatkins
by
7.0k points

1 Answer

3 votes

ANSWER:

Candy bar A: 264 calories

Candy bar B: 259 calories

Explanation:

Let x be the number of calories in candy bar A and y be the number of calories in candy bar B.

We can establish the following system of equations according to the data of the statement:


\begin{gathered} x+2y=782\rightarrow x=782-2y \\ \\ 2x+y=787 \end{gathered}

We substitute the first equation into the second and solve for y, just like this:


\begin{gathered} 2\cdot(782-2y)+y=787 \\ \\ 1564-4y+y=787 \\ \\ -3y=787-1564 \\ \\ y=(-777)/(-3) \\ \\ y=259 \\ \\ \text{ Now, for x:} \\ \\ x=782-2y \\ \\ x=782-2\cdot259 \\ \\ x=782-518 \\ \\ x=264 \end{gathered}

Therefore:

Candy bar A contains 264 calories and candy bar B contains 259 calories

User NicholasByDesign
by
7.1k points