<?xml version="1.0" encoding="us-ascii"?><InstanceReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Version>2.4.0.8</Version><ReportLongName>000140 - Disclosure - 9. Long Term Debt</ReportLongName><DisplayLabelColumn>true</DisplayLabelColumn><ShowElementNames>false</ShowElementNames><RoundingOption /><HasEmbeddedReports>false</HasEmbeddedReports><Columns><Column FlagID="0"><Id>1</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><CurrencyCode /><FootnoteIndexer /><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios><MCU><KeyName /><CurrencySymbol /><contextRef><ContextID>D130601_131130</ContextID><EntitySchema>http://www.sec.gov/CIK</EntitySchema><EntityValue>0000005656</EntityValue><PeriodDisplayName /><PeriodType>duration</PeriodType><PeriodStartDate>2013-06-01T00:00:00</PeriodStartDate><PeriodEndDate>2013-11-30T00:00:00</PeriodEndDate><Segments /><Scenarios /></contextRef><UPS /><CurrencyCode /><OriginalCurrencyCode /></MCU><CurrencySymbol /><Labels><Label Key="CalendarSupplement" Id="0" Label="6 Months Ended" /><Label Key="Calendar" Id="1" Label="Nov. 30, 2013" /></Labels></Column></Columns><Rows><Row FlagID="0"><Id>1</Id><IsAbstractGroupTitle>true</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>1</Level><ElementName>us-gaap_DisclosureTextBlockAbstract</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>xbrli:stringItemType</ElementDataType><SimpleDataType>string</SimpleDataType><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Notes</Label></Row><Row FlagID="0"><Id>2</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>2</Level><ElementName>us-gaap_DebtDisclosureTextBlock</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="D130601_131130" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText>&lt;!--egx--&gt;&lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;&lt;b&gt;9.&amp;#160; LONG TERM DEBT&lt;/b&gt;&lt;/p&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;&amp;nbsp;&lt;/p&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;In April 2012, the Company purchased a mining claim for a $252,000 note paying interest at 5%, with the principal due in three years.&lt;/p&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;&amp;nbsp;&lt;/p&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;In June 2012, the Company closed escrow on the purchase of another mining claim.&amp;#160; The consideration included a $100,000 note payable, with payments of $883 during the first two years and a third year balloon payment of $78,808.&lt;/p&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;&amp;nbsp;&lt;/p&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;The following is a summary of the Company's obligations over the next three years:&lt;/p&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;&amp;nbsp;&lt;/p&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;&amp;#160;&lt;/p&gt; &lt;table border="0" cellspacing="0" cellpadding="0" style='border-collapse:collapse'&gt; &lt;tr align="left"&gt; &lt;td width="139" valign="top" style='width:1.45in;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt'&gt; &lt;p align="center" style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;text-align:center;line-height:normal'&gt;Years Ended May 31,&lt;/p&gt; &lt;/td&gt; &lt;td width="90" valign="top" style='width:67.5pt;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt'&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;&amp;nbsp;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr align="left"&gt; &lt;td width="139" valign="top" style='width:1.45in;border:none;padding:0in 5.4pt 0in 5.4pt'&gt; &lt;p align="center" style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;text-align:center;line-height:normal'&gt;2014&lt;/p&gt; &lt;/td&gt; &lt;td width="90" valign="top" style='width:67.5pt;border:none;padding:0in 5.4pt 0in 5.4pt'&gt; &lt;p align="right" style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;text-align:right;line-height:normal'&gt;$ &amp;#160;&amp;#160;&amp;#160;&amp;#160;10,603&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr align="left"&gt; &lt;td width="139" valign="top" style='width:1.45in;padding:0in 5.4pt 0in 5.4pt'&gt; &lt;p align="center" style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;text-align:center;line-height:normal'&gt;2015&lt;/p&gt; &lt;/td&gt; &lt;td width="90" valign="top" style='width:67.5pt;padding:0in 5.4pt 0in 5.4pt'&gt; &lt;p align="right" style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;text-align:right;line-height:normal'&gt;10,603&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr align="left"&gt; &lt;td width="139" valign="top" style='width:1.45in;padding:0in 5.4pt 0in 5.4pt'&gt; &lt;p align="center" style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;text-align:center;line-height:normal'&gt;2016&lt;/p&gt; &lt;/td&gt; &lt;td width="90" valign="top" style='width:67.5pt;padding:0in 5.4pt 0in 5.4pt'&gt; &lt;p align="right" style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;text-align:right;line-height:normal'&gt;330,794&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p style='margin-top:0in;margin-right:0in;margin-bottom:10.0pt;margin-left:0in;line-height:115%;margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'&gt;&amp;nbsp;&lt;/p&gt;</NonNumbericText><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>nonnum:textBlockItemType</ElementDataType><SimpleDataType>na</SimpleDataType><ElementDefenition>The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.</ElementDefenition><ElementReferences>Reference 1: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 505

 -SubTopic 10

 -Section 50

 -Paragraph 3

 -URI http://asc.fasb.org/extlink&amp;oid=6928386&amp;loc=d3e21475-112644



Reference 2: http://www.xbrl.org/2003/role/presentationRef

 -Publisher SEC

 -Name Regulation S-X (SX)

 -Number 210

 -Section 02

 -Paragraph 19, 20, 22

 -Article 5



Reference 3: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 210

 -SubTopic 10

 -Section S99

 -Paragraph 1

 -Subparagraph (SX 210.5-02.19,20,22)

 -URI http://asc.fasb.org/extlink&amp;oid=6877327&amp;loc=d3e13212-122682



</ElementReferences><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>9. Long Term Debt</Label></Row></Rows><Footnotes /><IsEquityReport>false</IsEquityReport><ReportName>9. Long Term Debt</ReportName><MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel><SharesRoundingLevel>UnKnown</SharesRoundingLevel><PerShareRoundingLevel>UnKnown</PerShareRoundingLevel><ExchangeRateRoundingLevel>UnKnown</ExchangeRateRoundingLevel><HasCustomUnits>true</HasCustomUnits><IsEmbedReport>false</IsEmbedReport><IsMultiCurrency>false</IsMultiCurrency><ReportType>Sheet</ReportType><RoleURI>http://AIVN/20131130/role/idr_Disclosure9LongTermDebt</RoleURI><NumberOfCols>1</NumberOfCols><NumberOfRows>2</NumberOfRows></InstanceReport>
