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