x=-t^2 + 4t +2 and x= t^2-2t+8