Amazon interview question

Math Question - basic algebra