from typing import Tuple


def calculate_vwap(
        first_stock_values: dict,
        pv: float,
        sum_volume: float,
        actual_pv: float,
        actual_vol: float
    ) -> Tuple[float, float, float]:
    """
    Function to calculate the VWAP.

    Volume-weighted average price(VWAP)
    """
    if not pv:
        avg_stock_price = (first_stock_values['C'] + first_stock_values['H'] + first_stock_values['L']) / 3
        pv =  avg_stock_price * first_stock_values['V']
        sum_volume = first_stock_values['V']
        vwap = pv / first_stock_values['V']
    else:
        pv += actual_pv
        sum_volume += actual_vol

        vwap = pv / sum_volume

    return vwap, pv, sum_volume