have 3 mutually perpendicular axis X' , Y' and Z'

Line AB lies on X' and I know the global coordinates of A and B [that is coordinates cooresonding to axis X, Y and Z

I want to find:

1. Inclination of X' with global X , Y and Z axis.

2. Inclination of Y' with global X , Y and Z axis.

3. Inclination of Z' with global X , Y and Z axis.

Please help--very very urgent!!!