Minimize the bases P and Q such that each of the following alphanumeric equations has at least one solution:
(A) (GO)Base P + (GO)Base P = (GIG)Base P
(B) (GO)Base Q*(GO)Base Q = (GIG)Base Q
Note: Solve each of the alphanumeric equations separately and remember G, O and I must be distinct and G can't be zero.