def lane_lead(csd10: float, xpd10: float, total_cs: float, total_xp: float, team_prox: float) -> float:
    """
    Returns the lead a player has in lane in terms of cs and xp relative to total cs and xp between the two laners

    Formula: (team_prox * (csd10 + xpd10)) / (total_xp + total_cs)

    :param csd10: Difference in cs at 10 minutes
    :param xpd10: Difference in xp at 10 minutes
    :param total_cs: Total cs of player and opponent
    :param total_xp: Total xp of player and opponent
    :param team_prox: How often a teammate is within 2000px after minute 2
    :return: A float of lane lead metric
    """

    ll_metric = (team_prox * (csd10 + xpd10)) / (total_cs + total_xp)
    return ll_metric