Ratio problem with basic algebra