If a product is created with subproducts A and B in the ratio 1:1, then its cost is INR 500 per unit. If it is created with subproducts A and B in the ratio 3:1, then its cost is INR 300 per unit. What are the costs per unit (in INR) of subproducts A and B respectively?