Mathnasium interview question

Simple algebra