Hello everybody, how are you doing

sorry to bother

I just have two questions, I would really appreciate if you are so kind to answer step by step, the problem says

write the equation in the form y=a(x-h)^2+k or x=a(y-k)^2+h

1- x^2+2x

2- x=3y^2-12y-36

thanks!