def quote(items, format_money):
    total = sum(
        item.price * item.quantity
        for item in items
    )
    return format_money(total)
