A student sold candy bars and bags of popcorn for a school fund-raiser.

The student sold a total of 240 candy bars and bags of popcorn.
The price of each candy bar was 1$, and the price of each bag of popcorn was 2$
The student sold 300$ worth of candy bars and bags of popcorn.

How many bars did this student sell for the school fund-raiser

80
60
180
120

Let's assume the number of candy bars sold by the student is 'x'.

Therefore, the number of bags of popcorn sold will be 240 - x.

The total amount collected from selling candy bars will be x * 1$.

The total amount collected from selling bags of popcorn will be (240 - x) * 2$.

The total amount collected from selling both candy bars and popcorn will be x * 1$ + (240 - x) * 2$ = 300$.

Simplifying this equation, we get:

x + 480 - 2x = 300

-1x = 300 - 480

-1x = -180

x = -180 / -1

x = 180

Therefore, the student sold 180 candy bars for the school fundraiser.

Therefore, the correct answer is 180.