What was a shared reason why Austria-Hungary and Germany became members

What was a shared reason why Austria-Hungary and Germany became members of the Triple Alliance?

a. They had weak rulers.
b. They had weak armies.
c. They shared ethnic ties.
d. They wanted to increase trade.