Point P leaves vertex A and moves straight the inside of the square of one side of 80cm according to the next rule.
< Rule >
・ When P hits each side, it rebounds.
・ When P hits each vertex, it stops.
As shown in the Fig.1 below, the angle point P hits is set to X and the angle P rebounds is set to Y.

Answer to the following questions.
(1) Y is equal to X and point P rebounds at the position of 30 cm from vertex B.
Which is the vertex that is the nearest to the position where P rebounds at the fourth time?
In addition, find the distance from the vertex.
(2) In the case of (1), how many times does P rebound before it stops?
(3) Y is half of X. The locus before P rebounds at fourth time became as shown in the Fig.2 below.
Find the angle of Z.

< Rule >
・ When P hits each side, it rebounds.
・ When P hits each vertex, it stops.
As shown in the Fig.1 below, the angle point P hits is set to X and the angle P rebounds is set to Y.
Answer to the following questions.
(1) Y is equal to X and point P rebounds at the position of 30 cm from vertex B.
Which is the vertex that is the nearest to the position where P rebounds at the fourth time?
In addition, find the distance from the vertex.
(2) In the case of (1), how many times does P rebound before it stops?
(3) Y is half of X. The locus before P rebounds at fourth time became as shown in the Fig.2 below.
Find the angle of Z.