Answer:
To determine the cost of the shirt, we can set up an equation using algebra. Let x be the cost of the shirt in dollars. We know that Marissa spent a total of 45 on the hat and the shirt, and the hat cost 10. Therefore, we can write the equation:
x + 10 = 45
To solve for x, we need to isolate it on one side of the equation. We can do this by subtracting 10 from both sides:
x = 35
Thus, the cost of the shirt is $35.