help in Best box problem..

i am having a confusion in the best box problem J7 Problem - CodeChef
tel me if i m correct…
p cm wire ie 4l+4b+4h=p
and
s cm2 are ie 2(lb+bh+hl)=s

this is how 2 equations are need to be genrated…
if i m correct,when i try to solve these equation by the example provided in the problem…i am not able to get the correct answer…

please correct me where i am wrong?

You have to select the values of l,b and h in such a way to maximise the value of lbh and the three variables l,b and h should satisfy the following two equations:
(1) 4l+4b+4h<=p and (2) 2*(lb+bh+hl)<=s