Teo angles are complementary. One angle has a measure of 40° and the other has a measure of (8x+2)°. What is the value of x?

Since two angles are complementary, their measures must add up to 90 degrees.

Given that the first angle has a measure of 40 degrees and the second angle has a measure of (8x+2) degrees, we can write the equation:

40 + (8x+2) = 90

Simplifying the equation, we get:

8x + 42 = 90

Subtracting 42 from both sides, we have:

8x = 48

Dividing both sides by 8, we get:

x = 6

Therefore, the value of x is 6.