Triangle ABC is a right triangle with angle BAC = 90 degrees and angle B is greater than angle C. Suppose segment AP is an altitude of the triangle, segment AQ is an angle bisector of the triangle, and segment AR is a median of the triangle, and angle PAQ is 18 degrees. If P is on segment BQ, then what is the measure of angle RAC?