Drag Firm A's gold average-cost curve upward (or focus it and use the arrow keys) to bid its superior input up and watch the profit vanish.
Interactive view needs JavaScript. See the static version of this figure (it shows the profit box, the shifted average-cost curve, and the input being bid up).