In the square below, what is the value of m?

Solve the value of "m"
6(m + 1) = 3(m + 4) in a square all sides are equal so set the equations equal.
Plug in the number in the algebraic equation to check if the answer is correct.
If m = 2
Question: In the square below, what is the value of m?
Solution:
6(m+1)=3(m+4)
6m+6=3m+12
6m-3m=12-6
3m=6
3m/3=6/3 (Divide both sides by 3)
6m+6=3m+12
6(2)+6=3(2)+12
(12)+6=(6)+12
Explanation: They are both equal and correct to each other when finding the value of x then replaced m by 2 to make sure the substitution is same and corresponding based on the given equation.