You have to cross multiply (multiply the numerator of the first by the denominator of the second and the numerator of the second by the denominator of the first).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[19]
[tex] \frac{x+4}{3} = \frac{4}{10} [/tex]
[tex]10x+40=12[/tex]
[tex]10x = -28[/tex]
[tex]x=-2.8[/tex]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[21]
[tex] \frac{4}{n+8} = \frac{10}{8} [/tex]
[tex]32 = 8n + 64[/tex]
[tex]8n = -32[/tex]
[tex]n=-4[/tex]