math
posted by jake on .
peter bought a bag of candy. He gave away ten percent of the candy too his wife and the gave three pieces to meg. he gave one forth of what he had left to his friend joe and then ate half of the remaining 18 peaces of candy. How many pieces of candy were originally in the bag?

x = original # of pieces
w = gave to wife = 10x/100
m = gave to meg = 3
(xwm)/4 = j = gave to joe
18 = x  w  m  j
combine and solve for x