According to the figure given below both the charges can be located in a coordinate frame of reference.
At A, amount of charge, qA=2.5×10−7C (Given)
At B, amount of charge, qB=−2.5×10−7C (Given)
Total charge of the system,
a=qA+qB=2.5×10−7C−2.5×10−7C=0
Distance between two charges at points A and B,
d=15+15=30cm=0.3m
Electric dipole moment of the system is given by,
p=qA×d=qB×d=2.5×10−7×0.3=7.5×10−8Cm along positive z-axis
Therefore, the electric dipole moment of the system is 7.5×10−8Cm along positive z−axis.