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 represent the cost of the cotton candy.

The cost of 1 Mickey ice cream is $5.
The cost of 2 Mickey ice creams is $5 * 2 = $<<5*2=10>>10.
Tom paid $9, so Jessica paid $10 - $9 = $<<10-9=1>>1.
Jessica also bought cotton candy, so the equation is 1 + x = 4.
To find the value of x, subtract 1 from both sides of the equation: x = 4 - 1 = <<4-1=3>>3.
The cost of the cotton candy is $3. Answer: \boxed{3}.

Let's represent the cost of the cotton candy as "x".

The cost of each Mickey ice cream is $5.

Tom had $9 and he bought one Mickey ice cream, which cost $5. Therefore, he had $9 - $5 = $4 left.

Jessica paid for the rest, which was $4. This means she paid $4 for one Mickey ice cream and the cotton candy.

So, $4 = $5 (cost of one Mickey ice cream) + x (cost of the cotton candy).

Subtracting $5 from both sides of the equation, we get:

$4 - $5 = x

- $1 = x

Therefore, the cost of the cotton candy is -$1.

However, it does not make sense for the cost to be negative, so there may be an error in the problem.

To solve this problem, let's break it down step by step:

1. Let's define the variables:
- Let x be the cost of the cotton candy.
- The total cost of the ice creams for Tom and Jessica is 2 * $5 = $10.
- Since Jessica paid the remaining $4, we can deduce that Jessica's total expenditure is $10 + $4 = $14.

2. Now, let's write an equation to represent the problem:
- Tom's expenditure + Jessica's expenditure = Total Expenditure
- Tom spent $9 on ice cream, so his expenditure is $9.
- Jessica spent $10 on ice cream and an additional x on cotton candy, so her expenditure is $10 + x.
- The total expenditure is $14.
- Therefore, the equation becomes: $9 + ($10 + x) = $14.

3. Solve the equation:
- Simplify the equation: $9 + $10 + x = $14.
- Combine like terms: $19 + x = $14.
- Isolate x: subtract $19 from both sides to get x = $14 - $19.
- Simplify: x = -$5.

4. Interpret the result:
- The negative value for x does not make sense in this context, as the cost of the cotton candy cannot be negative.
- Therefore, it suggests that there might be an error in the problem or the given information.

In conclusion, the equation $9 + ($10 + x) = $14 leads to an inconsistent result of x = -$5, which does not make sense in the given context of the problem.