The null hypothesis (H0) in this situation is that the machine is filling the bags of pretzels correctly, and the mean weight of a bag is 8 ounces.
The alternative hypothesis (Ha) is that the machine is not filling the bags of pretzels correctly, and the mean weight of a bag is greater than 8 ounces.
Symbolically, this can be written as:
H0: μ = 8
Ha: μ > 8
where μ represents the true population mean weight of the bags of pretzels.