there is a clothing company that makes a up market line and a budget line of clothing using 3 materials:
the up-market line = 50%A + 20%B + 30%C
the budget line = 20%A + 50%B + 30%C
market price are $790/tonne for upmarket and $700 for the budget line.
For a period the company can by 100 metres of A for $800/metre, 100 metres of B for $600/metre and 75 metres of C for $400/metre.

first you have to calculate the profit per meter for each line. and then find out how much of each line the company should produce to maximise it's profit.

i just want help with the starting variables:
i've started to write:: (x1, x2 representing the 2 lines)
z=790[x1]+700[x2]-800(0.5[x1]+0.2[x2])-600(0.2[x1]+0.2[x2])-400(0.3[x1]+0.3[x2]

subject to
amount of A : 0.5[x1] + 0.2[x2] < 100
amount of B : 0.2[x1] + 0.5[x2] < 100
amount of C : 0.3[x1] + 0.3[x2] < 75

can anyone tell me if i'm on the right track? i don't know where to put the purchasing prices!!!