In the xy-plane, the graph y=3x^2-14x intersects the graph of x=y at the points (0,0) and (a,a). What is the value of a?