If the area of the triangle with vertices (x,0),(1,1) and (0,2) is 4 square units, then the value of x is: