A number was tripled, then decreased by 10, then doubled, and then increased by 2. The result was 5 times the original number.

If the original number was x, the equation will be
x=