If $X$ is a prevariety and the open sets $X_f:=\{x:f(x)\neq 0\}$ form a basis for the topology of $X$ as $f$ varies over $\Gamma(X,\mathcal{O}_X)$, then why is $X$ quasi-affine?
The definitions are from Mumford's red book, so prevariety is a scheme with a finite covering by affine varieties (all over the same algebraically closed field), and a quasi-affine variety is an open subset of an affine variety. I found this problem as problem 6 of http://ocw.mit.edu/courses/mathematics/18-725-algebraic-geometry-fall-2003/assignments/ps6.pdf, and it wasn't clear to me how to even start (where would I get the ambient affine variety?).
This isn't homework.