import math

def area_polygon(s, l):
    """
    Calculates the area of a regular polygon.

    Args:
        s: The number of sides of the regular polygon.
        l: The length of each side.

    Returns:
        The area of the regular polygon.
    """
    numerator = s * (l ** 2)
    denominator = 4 * math.tan(math.pi / s)
    area = numerator / denominator
    return area