Given that the total money Elise had, was $30.
Since she spent $18 on gifts and the rest on 3 corn dogs.
Let the cost of a corn god be 'x' dollars. Then the cost of 3 corn dogs will be,
So it is found that Elise spent $(3x) on corn dogs.
Since she had spent all the money in buying these two things, the total exprense must be equal to the total money Elise had in the beginning,
Thus, the required equation is obtained.
Therefore, option (a) is the correct choice.