Answer:
p = 18x + r / qx + 5
x = r - 5p / pq - 18
Step-by-step explanation:
p(qx + 5) = 18x + r
p = 18x + r / qx + 5
for x:
p(qx + 5) = 18x + r
qx + 5 = 18x/p + r/p
qx - 18x/p = r/p - 5
pqx - 18x / p = r/p - 5
x(pq - 18) / p = r/p - 5
x(pq - 18) = r - 5p
x = r - 5p / pq - 18