If the area of the triangle formed by (0,0),(a,0) and (12,a) is equal to 12 sq unit, then the values of a are :