Let us start with quantity A
The counting begins on May 1917 and ends on May 15 1996
For the time being let us consider the year in totality without computation for months.Total no of years would come to be \(1996 - 1917 = 19 +1 = 80\) years
since both years are included.Now, Among these years let us compute the no of
leap yearswhich would be \(\frac{96-20}{4}+ 1 = 20\) leap years.
Hence we have for
qty A \(60\) normal years and \(20\) leap years
and let us not forget that counting begins on may 30 and ends on may 15 so we are short of 15 days as well.Therefore qty \(A = 365* 60 + 366 *20 - 15\)
Coming to qty B similar process as for qty A leads us to the following findings:
leap years = 20
normal years = 60
and the counting begins on may 15 and ends on may 30 so we add 15 more days.
Therefore qty \(B = 365 * 60 + 20 * 366 + 15\)
Qty A = \(21900 + 7320 - 15 = 29205\)
Qty B = \(22265 + 6954 + 15 = 29235\)
_________________