def regular_polygon_area(perimeter, apothem):
    """Returns the area of a regular polygon"""
    perimeter = float(perimeter)
    apothem = float(apothem)
    if (perimeter < 0.0 or apothem < 0.0):
        raise ValueError('Negative numbers are not allowed')

    return perimeter * apothem / 2