Let \( Q \) and \( R \) be the feet of perpendiculars from the point \( P(a,a,a) \) on the lines \( x=y, \ z=1 \) and \( x=-y, \ z=-1 \) respectively. If \( \angle QPR \) is a right angle, then \( 12a^2 \) is equal to: