This is should be a distance formula problem. (Good that you asked the question.)
√[(4-0)2+(4-b)2] = √[(5-0)2+(-4-b)2] is how you set up the equality of the two distance formulas.
√(16 + 16 - 8b + b2) = √(25 +16 + 8b + b2) now square both sides and rewrite in standard form
b2 - 8b + 32 = b2 + 8b + 41 isolate the b (notice the b2 terms drop out)
-9 = 16b solve for b
-9/16 = b
You can check the number by substituting it for b in the above equality
√[(4-0)2 + (4 + 9/16)2] = √[(5-0)2 + (-4 + 9/16)2]