Solve for A 5gA+mA=B^3