I will give brainliest :)

Last weekend Joe bought a magazine for $6 and some
notebooks for $3 each. You spent a total of $18. If the
equation 3x + 6 = 18 represents this situation, what does
the x variable represent?


•the coast of magazines
•the number of magazines
•the number of notebooks
•the cost of notebooks