How can we find the prime numbers $p, q, r$ such that $5pqr-2p-10r = 270$?
By using the fact that $$5pqr-2p-10r -270\equiv -2p\equiv 0\pmod{5}$$
$$p\equiv 0\pmod{5}$$
and that $p$ is a prime number, we impose that $p = 5$.
Similarly,
$$5pqr-2p-10r -270\equiv 25qr\equiv 0\pmod{2}$$
$$qr\equiv 0\pmod{2}$$
then either $q\equiv 0\pmod{2}$ or $r\equiv 0\pmod{2}$, and so, either $q = 2$ or $r = 2$.