def equationBetweenTwoPoints(x1, x2, y1, y2, x):
    """
    Return the y value for an x value in the equation between two points
    """
    if (x2 - x1 != 0):
        return (((x - x1)/(x2-x1))*(y2-y1)) + y1