I know that I usually use r^2=x^2+y^2, x = r cos(t) and y = r sin(t) to convert polar equations to rectangular, but I seem to come to the correct solution.

e and p are constants

The polar equation is supposed to be an ellipse, but the solution I came up with doesn't seem correct.

Any ideas?