def areaCalculator(referenceLineBuiltLength, totalPixelArea):
    """

    :param referenceLineBuiltLength: float
    :param totalPixelArea:  float
    :return: actualArea [float], lengthscaleUnit [str, user input]
    """
    lengthPix = referenceLineBuiltLength
    lengthscale = input("Enter the length of the reference line: ")
    lengthscaleUnit = input("Enter the length units of the reference line: ")
    actualArea = (totalPixelArea) * ((float(lengthscale) ** 2) / (float(lengthPix) ** 2))
    return( actualArea, lengthscaleUnit )