Longer leg is placed on X axis.
Let the longer leg be at A(0,0) and B(3 a,0),or (-3 a,0), which is either base or altitude.
AB= 3 a
As longer leg = 3 Ă— shorter leg
Shorter leg should be placed either at (0,a) or (0,-a) maintaining triangle as right angled triangle.