Let's express the following expressions as the product of two factors:

$$
\begin{aligned}
& 8 a x - b x + 8 a y - b y \\
& a p + a x - 2 b x - 2 b p
\end{aligned}
$$
$$
\begin{gathered}
8 a x - b x + 8 a y - b y = x(8 a - b) + y(8 a - b) = (x + y)(8 a - b) \\
a p + a x - 2 b x - 2 b p = a(p + x) - 2 b(p + x) = (a - 2 b)(p + x)
\end{gathered}
$$

Number of solutions: 38.