Given,
One vertex of a rectangular parallelopiped is at the origin O and the lengths of its edges along x,y and z axes are 3,4 and 5 units respectively,
And P be the vertex (3,4,5),
Now plotting the diagram we get,

Now equation of line OP:3x=4y=5z
And equation of line AB:0x−3=0y=1z
Now finding, n1×n2=∣i^30j^40k^51∣
⇒n1×n2=i^(4)−j^(3)+k^(0)
⇒n1×n2=4i^−3j^
Now we know that,
Shortest Distance, S.D=∣n1×n2∣(a2−a1)⋅(n1×n2)
⇒S.D=5(3i^+0j^+0k^−0i^+0j^+0k^)⋅(4i^−3j^)
⇒S.D=5(3i^)⋅(4i^−3j^)
⇒S.D=512