You know that opposite angles are equal to one another. So the angle of the bottom left-hand corner of the paralleogram is also B. Now, since this B and 3a lie on a line, you know that:
Also, you know that adjacent angles of a parallelogram are supplementary (they add up to 180). So you have that
Use these equations to solve for a and B.