Let y=mx be one of the lines through the origin.
Since the triangle is isosceles right angled, this line makes an angle of ±π4 with 2x+3y=6 whose slope is −23.
So tan(±π4)=m+(2/3)1+m(−2/3)=3m+23−2m
⇒(3−2m)2=(3m+2)2
⇒[3−2(y/x)2]=[3(y/x)+2]2……[∵m=y/x]
⇒(3x−2y)2=(3y+2x)2
⇒5x2−24xy−5y2=0
This is same as ax2−2hxy−ay2=0
⇒a=5 and h=12
So, 12a2+5h2+5a+12h+60
=12×25+5×144+25+144+60=300+720+229=1249