This is a conversion factor and can be answered in two simple steps.
solving this equation will allow you to convert gallons to milliliters. Understanding how to cancel units is an important tool for the sciences.
The reason unit cancellation is so effective is because anything divided by itself is 1 such as:
Therefore when you "cancel out" units you're essentially making a unit to equal 1.