(3/5) of the cookies were chocolate chip cookies and the rest were butter cookies. After (2/5) of the chocolate chip cookies were sold, there were 24 more butter cookies than chocolate chip cookies. How many cookies were there at first?
I'm not sure how to create an algebraic expression for this.
$3/5$ of the cookies, which we'll call C, are chocolate chip so $Chocolate Chip=(3/5)C$. That means that $2/5$ of the cookies were butter cookies so $Butter Cookies=(2/5)C$.
Lastly, there were $24$ more butter cookies than chocolate chip cookies after $2/5$ of the chocolate chip cookies were sold so $(1-2/5)(Chocolate Chip)+24=Butter Cookies$.
Now solve the rest.