Let L = length, W = width and A = beginning area
L = 3W and A = LW = 3W2
Changed length = L + 5 = 3W + 5
Changed width = W - 2
New area = (3W + 5)(W - 2) = 3W2 - W - 10
But the new area is 21 less than the initial area, i.e. A - 21 = 3W2 - 21
Therefore, 3W2 - 21 = 3W2 - W - 10
W = 11 and L = 33
You should check that these answers satisfy the problem.