Finding the fraction of a given quantity