I think what Thushan is trying to get to is this. Pent-2-ene is the name of the hydrocarbon skeleton. Pentene by itself is insufficient as we do not know where the double bond is.
It explains why we would name 5,5,5-trichloropentanoic acid that, even though calling it 1,1,1,trichloropentan-6-oic acid produces a lower sum.
The rule is, you have to minimise the number for the parent functional group. In the first case, it is the double bond. In the second case, it is the carboxylic acid. Read
http://en.wikipedia.org/wiki/IUPAC_nomenclature_of_organic_chemistry if you're still not sure, especially the bit on numbering.
I admit, this system is confusing, but we need rules somewhere and that is how they have been set.