Write an equation and find the value of x

x+2x+7=22
x+2x=22-7
3x=15
x=15/3=5
In this equation we take the unknowns to the first member and the integers to the second member, then when subtracting and adding we divide the number of the second member by the number of the second member.
ENJOY :)