Formula derivation, algebra

I'm trying to derive a formula but can't seem to work the algebra.

I need to combine these two:

$$V_{1}p_{1} + V_{2}p_{2} = N$$

$$V_{1} + V_{2} = V$$

to get this:

$$\frac{V_{1}}{V} = \frac{p-p_{1}}{p_{2}-p_{1}}$$

where $$p = N/V$$

If anyone could show me the steps that would be a huge help. Thanks in advance!
 PhysOrg.com science news on PhysOrg.com >> City-life changes blackbird personalities, study shows>> Origins of 'The Hoff' crab revealed (w/ Video)>> Older males make better fathers: Mature male beetles work harder, care less about female infidelity
 Recognitions: Homework Help Were you trying to obtain $$\frac{V_{1}}{V} = \frac{p-p_{2}}{p_{1}-p_{2}}$$ instead? With $$\frac{V_{1}}{V} = \frac{p-p_{1}}{p_{2}-p_{1}}$$, I got $$V_{2}p_{1} + V_{1}p_{2} = N$$ instead.
 Dang, that will teach me to copy and paste! I'm sorry, Defennder, here's the correct expressions: $$\frac{V_{2}}{V}=\frac{p-p_{1}}{p_{2}-p_{1}}$$

Recognitions:
Homework Help

Formula derivation, algebra

$$V_{1}p_{1} + V_{2}p_{2} = N$$
$$(V-V_{2})p_{1} + V_{2}p_{2} = pV$$
Rearraging to get:
$$(p_{2}-p_{1})V_{2} = (p - p_{1})V$$

From here you just rearrange the terms and you'll get the answer.

 Similar discussions for: Formula derivation, algebra Thread Forum Replies Calculus & Beyond Homework 7 Advanced Physics Homework 1 Linear & Abstract Algebra 4 Introductory Physics Homework 8 Introductory Physics Homework 2