∠A and \angle B∠B are vertical angles. If m\angle A=(5x+2)^{\circ}∠A=(5x+2)

and m\angle B=(6x-12)^{\circ}∠B=(6x−12)

, then find the value of x.