For their outreach project, five classes gave these amounts – P1,356; P979.80; P875.25; P1,084.50; P753. How much was spent for medicine if P2,250 of the amount was spent for rice and P400 for clothing?