How is the transfer prices of an intermediate product determined when (a) there is not external market for the intermediate product, (b) a perfectly competitive external market for the intermediate products exists, and (c) an imperfectly competitive external market for the intermediate product exists?