Probably the most obvious way or the easiest way to do it in your head was either just looking at what you have to multiply the numerator by and then doing the same thing to the denominator or maybe by cross multiplication.