Calculating Screen co-ords

I’m calculating screen co-ords

If MARGIN+PICNUM*(MARGIN+WIDTH)+MARGIN+WIDTH=PICW/2

then WIDTH= ?

Thanks