Miranda bought 7$-movie ticket and popcorn for a total of 10$. The equation 7 + x = 10 can be used to find the cost x in dollars of the popcorn. How much did the popcorn cost?