Something tells me that after making it though a program like this, you'll have plenty of job options, with the one from Living Social just being one.
I read this as, if you TAKE the position on the elite engineering team after the five-month period, the contract is for 18-months. I don't think it is necessarily tied to the 5-month learning period.