def cucdiv(real1, imag1, real2, imag2):
    """
    Compute the quotient of the given complex numbers.
    Assuming that `x` is the complex number composed of
    the real part `real1` and imaginary part `imag1`,
    while `y` consists of `real2` and `imag2`,
    the result is computed by the equation `x / y`.
    """
    divisor = real2 * real2 + imag2 * imag2
    res_real = (real1 * real2 + imag1 * imag2) / divisor
    res_imag = (imag1 * real2 - real1 * imag2) / divisor
    return res_real, res_imag