A box is placed on top of another box,if it is exerting a compressive force of 500N.What is the approximate weight of the box?

500 N is the answer

Its mass is therefore 500/9.8 or about 50 kg, but you asked for weight which is a force in Newtons.