The following will produce 3 lines numbered (1), (2) and (3) on the right:
\begin{align}
x = 1\\
y = 1\\
z = x + y
\end{align}
while using \begin{align*} ... \end{align*}
will produce the same lines without numbers.
What if I want to produce the same three lines but with only the last one numbered, or only the first and second lines numbered, etc ?

\tagand\notag. – oliversm Jun 18 '20 at 23:21