In a market, there are 3 types of shirts, shirt x = $0.10, shirt y = $3.00 and shirt z = $6.00.(adsbygoogle = window.adsbygoogle || []).push({});

The condition here is you need to buy total number of 100 shirts for shirt x, y and/or z with

$ 100 exactly!

I believe this can be written as

0.1x + 3y + 6z = 100 ... (1)

x + y + z = 100 ... (2)

where x = number of shirt x

y = number of shirt y

z = number of shirt z

*Solution ==> x = 70, y = 29 and z = 1*

x = (200 + 3z)/2.9 ... (3)

y = (90 - 5.9z)/2.9 ... (4)

The problem now is whenever I substitute the (3) and (4) back to (1) or (2), it eliminates the z terms. So can someone show me a better way to deal with this kind of problem?

Regards

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Calculate the value of x, y and z

**Physics Forums | Science Articles, Homework Help, Discussion**