Do my two lengths need the same units?
Yes. Because the calculation uses their ratio, any consistent unit works.
Find the ideal mechanical advantage and required input force of a lever from the two perpendicular arm lengths and the load force.
A lever balances when the torque of the input force about the pivot matches the torque of the load. The lever arm is the perpendicular distance from the pivot to each force’s line of action.
An effort arm four times longer than the load arm gives a mechanical advantage of four. In the ideal model, 25 N balances a load of 100 N.
Yes. Because the calculation uses their ratio, any consistent unit works.
The calculation assumes a static, rigid lever and an ideal pivot. It gives the force needed for balance under that model.