Tried to find the gcd and apply the gcd to reduce the resulting fraction.