To calculate the percentage that some quantity is of another one, we calculate the ration from the part we want to calculate by the one which is the 100% and multiplicate it by 100. The result is the percentage.
From this, we can calculate as follows:
From the calculation presented, we are able to conclude that 12 gallons represent 80% of 15 gallons.