A bakery produces bread in batches. Each batch contains 18 loaves of bread. If the baker wishes to make 144 loaves in total, how many batches must the baker produce?
Let $$x$$ represent the number of batches. The equation to determine the number of batches needed can be set up as follows:
$$18x = 144$$
What is the value of $$x$$?