Q:

How do i do the same with two variables outside the division box

Answer

If you have two different variables in the same equation as the divisor then you may have to do calculus simplify the division.