I want to prove that "the spectrum of maximal ideals of a ring $A$ is a variety of $\mathbb{A}^n_k$ for some $n$ if and only if $A$ is a finitely generated $k$-algebra". I assume that $k$ is algebraically closed.
Any hints on how to make a start for each direction?