you need to combine the numerator into one fraction and the denominator into one fraction so you can flip and multiply.
[tex] Numerator\\ \\ \frac{2}{x} + 3( \frac{x}{x} ) = \frac{2+3x}{x} \\ \\ Denominator \\ \\ 1 ( \frac{8x}{8x}) - \frac{1}{8x} = \frac{8x- 1}{8x} \\ \\ flip-multiply \\ \\ \frac{2+3x}{x} ( \frac{8x}{8x-1} ) = \frac{8(2+3x)}{8x-1} = \frac{16+24x}{8x-1} [/tex]
For the second question, factor everything.
[tex] \frac{(q+8)(q-1)}{(q-4)(q+1)} [/tex]
Domain is the restriction on q. (remember denominator ≠ 0)
So q ≠ 4 or -1