Let the fraction
According to 1st condition
Now 2nd condition
multiply 3 in Equation (1) and 2 in equation (2)
Solve equation (3) and equation (4) we get
Hence, the fraction