X represents years. Set the amounts equal.
$30,000 + $150(x) = $6,250 + $1100(x)
$23,750 = $950(x)
x = 25 years
Second part:
$30,000 + $150(25) = $33,750
$6,250 + $1100(x) = $33,750
Third part:
You would want the gas heating system if you were only going to have it for less than 25 years. Not completely sure what that question is asking.