# Basic algebra gone out the window

I'm really embarrassed to ask this - my apologies.

In a piece of software I'm writing, I am using the following:

$Y = X+\frac{X}{10}N$

That's all fine - but how do I calculate X when I know Y and N?

I know it's really basic, but for some reason I get stuck half-way through moving the equation around.

-
Please clarify, is it $\frac{X}{10N}$ or $\frac{X}{10}N$ ? (Parentheses are hella important!) –  Guess who it is. Nov 23 '10 at 11:14
SOrry, it is Y = X + ((X/10)*N) –  palmaceous Nov 23 '10 at 11:18
Note then that $Y=X(1+\frac{N}{10})$; thus, $X=\frac{Y}{1+\frac{N}{10}}$ ... –  Guess who it is. Nov 23 '10 at 11:27
Spot on, that works perfectly. –  palmaceous Nov 23 '10 at 11:35
@Arturo, done now. –  Guess who it is. Nov 23 '10 at 15:19

If $Y=X+\frac{X}{10}N=X\left(1+\frac{N}{10}\right)$, then $X=\frac{Y}{1+\frac{N}{10}}$ .