import math


def compute_line(r, std_y, std_x, my, mx):
    """
    Compute line

    :param r: R
    :param std_y: Y standard deviation
    :param std_x: X standard deviation
    :param my: MY
    :param mx: MX
    :return: b and a
    """

    b = r * (math.sqrt(std_y) / math.sqrt(std_x))
    a = my - b * mx
    return b, a