I am studying Algebraic Methods of Combinatorics and I am not able to solve the following problem.
Let $n,k,h$ be integers such that $n \geq 2k^2$ and $h \leq k-1$ (I am not sure if this condition is necessary at all). Show that there is a family $\mathcal{A} \subseteq {[n] \choose k}$ such that $|\mathcal{A}| \geq (n/2k)^h$ and $|A_i \cap A_j| \leq h-1$ for every pair of distinc subsets in $\mathcal{A}$.
[Hint: Choose a largest prime $p$ smaller than $n/k$. Fix a subset $A \subset \mathbb{F}_p$ of size $k$ and consider $A_f = \{(x,f(x)) \in A \times \mathbb{F}_p\}$ for polynomials $f \in \mathbb{F}_p[x]$ of degree at most $h-1$]
My idea was to define $\mathcal{A} = \{A_f \mid f \in \mathbb{F}_p[x] : \mathrm{deg}(f) \leq h-1 \}$, because then we have that $|\mathcal{A}| = p^h \geq (n /2k)^h$ (by using Bertrand's Postulate) as required but I don't know how to deal with the intersection size of two distinc elements of $\mathcal{A}$. Moreover, this family is a family of subsets of $[n] \times [n]$ and not $[n]$ as required. I also tried to just deal with the projection on the second coordinate of each $A_f$, but I am stuck as well with the intersection.