mastercard incorporated notes to consolidated financial statements 2014 ( continued ) ( in thousands , except percent and per share data ) note 17 . commitments at december 31 , 2008 , the company had the following future minimum payments due under non-cancelable agreements : capital leases operating leases sponsorship , licensing & .

Table:
 | total | capital leases | operating leases | sponsorship licensing & other
2009 | $ 372320 | $ 8435 | $ 40327 | $ 323558
2010 | 140659 | 2758 | 18403 | 119498
2011 | 80823 | 1978 | 11555 | 67290
2012 | 50099 | 1819 | 9271 | 39009
2013 | 50012 | 36837 | 7062 | 6113
thereafter | 21292 | 2014 | 19380 | 1912
total | $ 715205 | $ 51827 | $ 105998 | $ 557380
included in the table above are capital leases with imputed interest expense of $ 9483 and a net present value of minimum lease payments of $ 42343 .
in addition , at december 31 , 2008 , $ 92300 of the future minimum payments in the table above for leases , sponsorship , licensing and other agreements was accrued .
consolidated rental expense for the company 2019s office space , which is recognized on a straight line basis over the life of the lease , was approximately $ 42905 , $ 35614 and $ 31467 for the years ended december 31 , 2008 , 2007 and 2006 , respectively .
consolidated lease expense for automobiles , computer equipment and office equipment was $ 7694 , $ 7679 and $ 8419 for the years ended december 31 , 2008 , 2007 and 2006 , respectively .
in january 2003 , mastercard purchased a building in kansas city , missouri for approximately $ 23572 .
the building is a co-processing data center which replaced a back-up data center in lake success , new york .
during 2003 , mastercard entered into agreements with the city of kansas city for ( i ) the sale-leaseback of the building and related equipment which totaled $ 36382 and ( ii ) the purchase of municipal bonds for the same amount which have been classified as municipal bonds held-to-maturity .
the agreements enabled mastercard to secure state and local financial benefits .
no gain or loss was recorded in connection with the agreements .
the leaseback has been accounted for as a capital lease as the agreement contains a bargain purchase option at the end of the ten-year lease term on april 1 , 2013 .
the building and related equipment are being depreciated over their estimated economic life in accordance with the company 2019s policy .
rent of $ 1819 is due annually and is equal to the interest due on the municipal bonds .
the future minimum lease payments are $ 45781 and are included in the table above .
a portion of the building was subleased to the original building owner for a five-year term with a renewal option .
as of december 31 , 2008 , the future minimum sublease rental income is $ 4416 .
note 18 .
obligations under litigation settlements on october 27 , 2008 , mastercard and visa inc .
( 201cvisa 201d ) entered into a settlement agreement ( the 201cdiscover settlement 201d ) with discover financial services , inc .
( 201cdiscover 201d ) relating to the u.s .
federal antitrust litigation amongst the parties .
the discover settlement ended all litigation between the parties for a total of $ 2750000 .
in july 2008 , mastercard and visa had entered into a judgment sharing agreement that allocated responsibility for any judgment or settlement of the discover action between the parties .
accordingly , the mastercard share of the discover settlement was $ 862500 , which was paid to discover in november 2008 .
in addition , in connection with the discover settlement , morgan stanley , discover 2019s former parent company , paid mastercard $ 35000 in november 2008 , pursuant to a separate agreement .
the net impact of $ 827500 is included in litigation settlements for the year ended december 31 , 2008. .

Question: what was the average consolidated rental expense from 2006 to 2008
Answer: 36662
Calculation: add(42905, 35614), add(31467, #0), add(#1, const_3), divide(#2, const_2)