James bought c candy bars, each at a price of p dollars. He then sold s of those candy bars, each at a price of y dollars. If James made a profit of x dollars, which of the following represents the number of candy bars that James sold?
A. \(\frac{(pc — x)}{y}\)
B. \(\frac{(x - pc)}{y }\)
C. \(xy —pc\)
D. \(\frac{(x+ pc)}{y}\)
E. \(\frac{(pc — y)}{x}\)
Kudos for the right answer and explanation