def stats(d_raw_materials, f_secret_points, f_total_money_collected):
    """
    Show machine statistics

    Params:
        d_raw_materials: dict
        f_secret_points: int
        f_total_money_collected: float

    Returns:
        str
    """
    cm_stats = 'sugar {0} tablespoons remaining\n'.format(d_raw_materials['sugar'])
    cm_stats += 'butter {0} teaspoons remaining\n'.format(d_raw_materials['butter'])
    cm_stats += 'dark chocolate {0} tablespoons remaining\n'.format(d_raw_materials['dark chocolate'])
    cm_stats += 'caramel {0} tablespoons remaining\n'.format(d_raw_materials['caramel'])
    cm_stats += 'light corn syrup {0} teaspoons remaining\n'.format(d_raw_materials['light corn syrup'])
    cm_stats += 'sweetened condensed milk {0} teaspoons remaining\n'.format(d_raw_materials[
        'sweetened condensed milk'])
    cm_stats += 'vanilla extract {0} teaspoons remaining\n'.format(d_raw_materials['vanilla extract'])
    cm_stats += 'sprinkles {0} tablespoons remaining\n'.format(d_raw_materials['sprinkles'])
    cm_stats += 'bing cherries {0} tablespoons remaining\n'.format(d_raw_materials['bing cherries'])
    cm_stats += 'candied bacon {0} tablespoons remaining\n'.format(d_raw_materials['candied bacon'])
    cm_stats += 'bacon infused bourbon {0} tablespoons remaining\n'.format(d_raw_materials['bacon infused bourbon'])
    cm_stats += 'sea salt {0} tablespoons remaining\n'.format(d_raw_materials['sea salt'])
    cm_stats += 'Total Money Collected: ${0:.2f}\n'.format(f_total_money_collected)
    cm_stats += 'Total secret points earned: {0}'.format(f_secret_points)
    return cm_stats