Amazon Interview Question

Math Question - basic algebra