import math


def find_bottom_right_triangle(height, hypotenuse):
    """
    Find third non-hypotenuse side of a triangle.
    :returns: Side length or -1 if error
    """
    if height != 0 and hypotenuse != 0 and hypotenuse > height:
        return math.sqrt((hypotenuse * hypotenuse) - (height * height))
    else:
        return -1