A slope field is generated by the differential equation
dxdy=(ax+b)(y+2),
where a and b are constants. The field shows horizontal segments along y=−2. In addition, the slope at (0,−1) is 4 and the slope at (3,−1) is 10. Determine the explicit expression for dxdy by finding a and b.