A Markovian Decision Model for a Joint Replacement and Stocking Problem