Forming a polynomial to show that $\cos\left(\frac{2\pi}{17}\right)$ is algebraic
Probably the best way is to just show that the sum of two algebraic numbers is algebraic. This is not obvious, but if you look at it just right it's much easier than it seems at first.
Regard $\Bbb C$ as a vector space over $\Bbb Q$. Any linear-algebra concepts below refer to $\Bbb Q$-linear subspaces of $\Bbb C$.
Lemma 0. The number $a\in \Bbb C$ is algebraic if and only if the span of $1,a,a^2\dots$ is finite-dimensional.
Proof: Easy exercise. QED.
Lemma 1. Suppose $A,B\subset\Bbb C$ are subspaces, and let $C$ be the span of the $xy$ with $x\in A$, $y\in B$. If $A$ is spanned by $a_1,\dots,a_n$ and $B$ is spanned by $b_1,\dots,b_m$ then $C$ is spanned by $a_jb_k$, $1\le j\le n$, $1\le k\le m$ (so in particular $C$ is finite dimensional).
Proof: Easy exercise. QED.
Theorem. If $a,b\in\Bbb C$ are algebraic then $a+b$ is algebraic.
Proof. Let $A$ be the span of the powers of $a$ and $B$ the span of the powers of $b$. Let $C$ be as in Lemma 1. Now there exist $n$ and $m$ such that $A$ is spanned by $1,a,\dots, a^n$ and $B$ is spanned by $1,b,\dots,b^m$. So Lemma 1 shows that $C$ is finite dimensional.
But every power of $a+b$ lies in $C$. So the span of the powers of $a+b$ is finite dimensional, and hence Lemma 0 shows that $a+b$ is algebraic. QED.
This shows that your number is algebraic since $\cos(t)=(e^{it}+e^{-it})/2$.
Edit. One could use the argument above to find $P$ with $P(a+b)=0$, given $p(a)=0$ and $q(b)=0$. Any power of $A$ can be written explicitly as a linear combination of $1,a,\dots a^n$, and similarly for $b$. So any $a^jb^k$ can be written explicitly as a linear combination of $a^jb^k$ with $0\le j\le n$ and $0\le k\le m$. Hence the same is true of any power of $a+b$. So write down the powers of $a+b$ as such linear combinations, one by one, and check the vectors of coefficients for linear dependence. Eventually a dependence relation appears, and that gives you $P$ with $P(a+b)=0$.
By adding equalities $$\cos(n+1)x=\cos nx\cos x-\sin nx\sin x\\ \cos(n-1)x=\cos nx\cos x+\sin nx\sin x$$ we get an equality $$\cos(n+1)x+\cos(n-1)x=2\cos nx\cos x$$ If we now define, by induction, Chebyshev polynomials $T_0(y)=1,T_1(y)=y,T_{n+1}(y)=2yT_n(y)-T_{n-1}(y)$ then it follows, by taking $y=\cos x$, that $$T_n(\cos x)=\cos nx$$ It follows that $\cos\frac{2\pi}{17}$ is a root of $T_{17}(x)-\cos 2\pi=T_{17}(x)-1$.
Chebyshev polynomials are a bit tedious to calculate by hand, but thanks to the recurrence relation this can be done in quite a short amount of time. You can draw a Pascal-triangle like table containing their coefficients, which would make it even faster.