Read the following texts and table with financial data from an S&P 500 earnings report carefully.Based on the question-answer history (if provided), answer the last question. The answer may require mathematical calculation based on the data provided.

Text: stock performance graph the following graph provides a comparison of five year cumulative total stockholder returns of teleflex common stock , the standard a0& poor 2019s ( s&p ) 500 stock index and the s&p 500 healthcare equipment & supply index . the annual changes for the five-year period shown on the graph are based on the assumption that $ 100 had been invested in teleflex common stock and each index on december a031 , 2012 and that all dividends were reinvested . market performance . <table class='wikitable'><tr><td>1</td><td>company / index</td><td>2012</td><td>2013</td><td>2014</td><td>2015</td><td>2016</td><td>2017</td></tr><tr><td>2</td><td>teleflex incorporated</td><td>100</td><td>134</td><td>166</td><td>192</td><td>237</td><td>368</td></tr><tr><td>3</td><td>s&p 500 index</td><td>100</td><td>132</td><td>151</td><td>153</td><td>171</td><td>208</td></tr><tr><td>4</td><td>s&p 500 healthcare equipment & supply index</td><td>100</td><td>128</td><td>161</td><td>171</td><td>181</td><td>238</td></tr></table> s&p 500 healthcare equipment & supply index 100 128 161 171 181 238 .
Question: what was the price of teleflex in 2017?
Answer: 368.0
Question: what was the price of teleflex in 2012?

user
100.0
assistant