∠A and \angle B∠B are vertical angles. If m\angle A=(3x+22)^{\circ}∠A=(3x+22) ∘ and m\angle B=(7x-22)^{\circ}∠B=(7x−22) ∘ , then find the value of x.