With C being number of candy bars, and N being the number of nachos, the EQUATION you want is:
FYI Pay no attention to ANYONE who gives you an inequality instead of an EQUATION. Those people's primary JOB is to lead you astray.
By the way, it's not "right and," but "write an," instead!