Anyone Home interview question

Some basic algebra based questions