You're dealing with 'literals' here. This means your answer will not be a number. Both a and b are unknown variables at this time, so we just solve for whichever variable is required. It's like converting formulas like this:
Distance = rate X time
Rate = distance divided by time
Time = distance divided by rate.