Angle-A and angle-B are alternate interior angles with parallel lines cut by a transversal. That tells you that the two angles are EQUAL. So you can write
8x + 78 = 2x + 114 ,
and it should all be smooth sailing for you from that point.
The answer to your problem is 1
1 way : 10d + 2d
another way: 5d + 5d + 2d