• + 0 comments

    **Simple Python Solution **

    x = min(bc,wc+z)
    y = min(wc,bc+z)
    return (b*x) + (w*y)