Question: What is the solution?

Solve 7 - 41 = -16*p + 30 for p.

Answer: 4

Question: What is the solution?

Solve 3*i + 7*i = 14*i + 40 for i.

Answer: -10

Question: What is the solution?

Solve 31*a = 52 + 289 for a.

Answer: 11

Question: What is the solution?

Solve 795*d - 389*d = 396*d - 250 for d.

Answer:
-25