We know that 1 year =12 months
Then,
Age of Boy A is 6 years 8 months=6×12+8=80 months
And ,
Age of Boy is 7 years 4 months=7×12+4=88 months
Ratio of age of A to age of B
=8088=1011=10:11
If we divide Rs. 3150 in (10+11)=21 parts
Then,
Boy A will get 1021 th of 3150
=1021×3150=Rs.1500
And Boy B will get
Rs.3150−1500=Rs.1650
Hence, Boy A will get Rs.1500 and Boy B will get Rs.1650.