Finding $p$ value corresponding to $X^2$ value, using the table with critical $X^2$ values
Assuming a table with a row per degrees of freedom and a column per upper tail probability
$p$ value is the probability of finding the observed $X^2$ value or larger, given that the null hypothesis is true.
