A shopkeeper keeps 100 marbles in two boxes, A and B, such that Box A contains only red and Box B contains only green marbles. Barring an equal number of marbles from each box, he sold all the others and earned Rs. 25 and Rs. 15 from Box A and Box B respectively. Later, he sold half of the remaining marbles. His total earning from all the transactions accumulated to Rs. 45. What is the cost of each marble - red or green.?