A state bank may acquire property of any kind to secure, protect, or satisfy a loan or investment previously made in good faith. Property acquired pursuant to this section shall be held and disposed of subject to the following conditions and limitations:
 1. Shares in a corporation and other personal property, the acquisition of which is not otherwise authorized by this chapter, shall be sold or otherwise disposed of within six months unless the time is extended by the superintendent.
 2. Real property purchased by a state bank at sales upon foreclosure of mortgages or deeds of trust owned by it, or acquired upon judgments or decrees obtained or rendered for debts due it, or real property conveyed to it in satisfaction of debts previously contracted in the course of its business, or real property obtained by it through redemption as a junior mortgagee or judgment creditor, shall be sold or otherwise disposed of by the state bank within five years after title is vested in the state bank, unless the time is extended by the superintendent. This deadline may be extended up to an additional five years with prior approval of the superintendent, but in no event shall a state bank hold such property for more than ten years.