How is this problem done? it's not coming out right for me.

solve for c: x = p(1/a + m/c)

cax=pc+ ma
c(ax-p)=ma
then divide by ax-p check my thinking.

To solve for c in the equation x = p(1/a + m/c), follow these steps:

1. Begin with the given equation: x = p(1/a + m/c).
2. Distribute the p to both terms inside the parentheses: x = p/a + pm/c.
3. To manipulate the equation and isolate c, subtract p/a from both sides: x - p/a = pm/c.
4. Multiply both sides by c to get rid of the fraction: c(x - p/a) = pm.
5. Expand the left side of the equation: cx - cp/a = pm.
6. Add cp/a to both sides of the equation to isolate cx: cx = pm + cp/a.
7. Rearrange the terms: cx = pm + (cp/a).
8. Combine like terms on the right side: cx = pm + cp/a.
9. Factor out c on the right side: cx = p(m + p/a).
10. Divide both sides by x to solve for c: c = p(m + p/a)/x.

Therefore, the solution for c is: c = p(m + p/a)/x.

Please note that your initial steps are correct, but the final step requires dividing both sides of the equation by x instead of ax - p.