Yes, that's the direct method.
It's been nearly 50 years since I had Advanced Algebra (yes, I made A's and B's-- there was once a time when I could do that... no more).
My approach would be a series of approximations: The final result needs to meet $100 more condition.
Pick an estimated value for either the bat or the ball-- since it's easier to work with small numbers? Assume the ball costs $10 (a nice round number). Do the math: 110-10 = 100. Does that meet the initial condition? No-- the difference is only 90. The ball is too expensive. (now if I was writing a computer program, I'd likely increment in a finer scale, but..) Divide the ball's cost by 2 for $5. Do the math 110 - 5 = 105. Does that meet the initial condition? Yes. Done.
(In the case of a program, you also need a condition for under-shooting as well, i.e. if you started with $2 for the ball, you'd have 110 - 2 = 108. 108, too large, increase cost of ball. And so on)
That's how a computer would do it, using a simple program that lacks the tools of Algebra.