Tom and Jessica are going to Disneyworld. Snacks are EXPENSIVE there. They each got a Mickey ice cream, and Jessica also got cotton candy. Tom only had $9, so Jessica paid for the rest, which was $4. The ice cream cost $5 each, what was the cost of the cotton candy? Write an equation to represent the word problem and solve it. (Show all of your steps)

Let x be the cost of the cotton candy.

The Mickey ice cream cost $5 each, so Tom spent 2*5=$<<2*5=10>>10 on ice cream.
Jessica paid $4 for the snacks, which means the total cost of the snacks was 9+4=$<<9+4=13>>13.
Thus, the cost of the cotton candy was x+10=$13.
Subtracting 10 from both sides gives x=$13-10=$<<13-10=3>>3. Answer: \boxed{3}.

To solve this problem, we can first set up an equation to represent the given information.

Let's assume the cost of the cotton candy is 'C'.
The cost of each ice cream is $5.
The total amount paid by Tom is $9.

Tom paid for his ice cream, which equals the cost of one ice cream, so we can represent this as:

5 = 9 - C

Now let's solve for C.

To move 5 to the other side of the equation, we need to subtract 5 from both sides:

5 - 5 = (9 - C) - 5
0 = 4 - C

Now let's isolate C by moving 4 to the other side of the equation.

C = 4 - 0
C = 4

So, the cost of the cotton candy is $4.