Analysis of a two commodity inventory problem