a man purchased earphone on friday . but he forgot how much it cost . the data he have are mean expenditure of all 7 days is 500 . expenditure on mon , tue , wed , thurs , sat , sun are 450600 , 400500 , 550300 . on friday he purchased 3 things one earphone , one pen and one notebook . pen cost 30 and notebook cost 50 . then what is cost of earphone ?
solution let expenditure on friday be x ( 450 + 600 + 400 + 500 + x + 550 + 300 ) / 7 = 500 2800 + x = 3500 x = 700 pen + notebook + earphone = 700 earphone = 700 - 80 = 620 answer a
subtract(subtract(subtract(multiply(7, 500), add(add(add(add(add(subtract(500, 50), add(500, const_100)), subtract(500, const_100)), 500), add(500, 50)), subtract(subtract(500, const_100), const_100))), 30), 50)