We have the weights of coins: 50ct ~7,8g, 1€~7,5g, 2€~8,5g.
If we have that the total weight is 143,5 g, what is the value of coins?
Let x,y,z the number of each coins (50cents, 1 Euro, 2 euro), then we have that 7.8x + 7.5y + 8.5z = 143,5, right?
What we want to calculate is x/2 + y + 2z.
How can we caluclate x, y, z?