The median of the following data is 50. Find the values of p and q