∠A is complementary to ∠B. The measure of ∠A is (8x+12)∘. The measure of ∠B is half the measure of ∠A.

Write an equation that can be used to determine the value of x. Then solve for x.