Converting a percentage to a fraction in simplest form