Which variable is dependent on another variable's value?
-The number of squares Rosa cuts the brownies into because it is dependent on the number of people attending the potluck.
Therefore, the independent variable is p, the number of people attending the potluck.
Hope this helps! :)