This is for my math analysis class, and I can't quite figure out how to do it!

Make the real component on the left side equal to the real component on the right.

a-2=7 therefore,

a=9

Make the imaginary component on the left side equal to the imaginary component on the right.

3bi=6i

b=2

Plug them and get

7+6i=7+6i