Finding the fraction of a given number or group