How to find part/obtained value in percentage problem