Using a system of equations, it is found that:
A system of equations is when two or more variables are related, and equations are built to find the values of each variable.
In this problem, the variables are:
You buy 4 health bars and 3 health drinks for $10, hence:
4x + 3y = 10.
Your friend buys 6 health bars and 2 health drinks for $10, hence:
6x + 2y = 10
2y = 10 - 6x
y = 5 - 3x.
Replacing on the first equation:
4x + 3y = 10
4x + 3(5 - 3x) = 10
-5x = -5
5x = 5
x = 1
Then:
y = 5 - 3x = 5 - 3 = 2.
More can be learned about a system of equations at https://brainly.com/question/24342899
#SPJ1