Let's say that Batman's age is b, and Robin's age is r.
We can set up a system of equations as such with the given information:

Using substitution, we plug-in 4r from the first equation into b in the second equation to get

.
Now, we plug in the value of r into the first equation to get

.
Thus, Batman is 36 years old, and Robin is 9 years old... A little weird?