CC.16 Set of apple and orange juice

There are apple juice and orange juice.
The ratio of each number of bottles is 53 : 54.
The following sets are ready by putting these juice bottles in.

A set : One bottle of apple juice and two bottles of orange juice
B set : Two bottles of apple juice and two bottles of orange juice
C set : Three bottles of apple juice and two bottles of orange juice

When only B sets were ready as many as possible at first, five bottles of juice remained.
There are X bottles of apple juice among the five and Y bottles of orange juice among the five.
Based on this, it is found that there are Z bottles of apple juice in all. Then, three kinds of sets, A, B, and C are ready respectively from the start over again.
All bottles of the juice were able to be used.
Moreover, all the numbers of bottles of the juice in B sets and all the numbers of bottles of the juice in C sets are same.
Answer the following questions.

(1) Find the number applicable to X, Y, and Z, respectively.

(2) Find the number of C set.



Answer
(1) X = 1, Y = 4, Z = 159
(2) 24 sets